]> git.phdru.name Git - cookiecutter.git/blob - project_template/.travis.yml
CI(travis): Remove outdated sudo keyword
[cookiecutter.git] / project_template / .travis.yml
1 # Config file for automatic testing at travis-ci.org
2
3 # Only test master and pull requests; skip tags.
4 # Other branches can allow themselves.
5 branches:
6   only:
7     - master
8
9 language: python
10
11 python:
12   - "2.7"
13
14 cache: pip
15
16 matrix:
17   include:
18   - python: "2.7"
19     env: TOXENV=py27
20   - python: "3.4"
21     env: TOXENV=py34
22   - python: "3.5"
23     env: TOXENV=py35
24   - python: "3.6"
25     env: TOXENV=py36
26   - python: "3.7"
27     dist: xenial
28     env: TOXENV=py37
29   - python: "2.7"
30     env: TOXENV=py27-flake8
31   - python: "3.7"
32     dist: xenial
33     env: TOXENV=py37-flake8
34   - python: "pypy"
35     env: TOXENV=pypy
36
37   allow_failures:
38     - env: TOXENV=pypy
39
40 install:
41   - travis_retry pip install --upgrade "pip < 19.1" setuptools tox ppu
42
43 script:
44   - tox
45
46 before_cache:
47   - remove-old-files.py -o 180 ~/.cache/pip