]> git.phdru.name Git - cookiecutter.git/blob - project_template/.travis.yml
Build(setup.py): Use `importlib` instead of deprecated `imp` for Python 3.4+
[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 # Prefer docker containers
10 sudo: required
11
12 language: python
13
14 python:
15   - "2.7"
16
17 cache: pip
18
19 matrix:
20   include:
21   - python: "2.7"
22     env: TOXENV=py27
23   - python: "3.4"
24     env: TOXENV=py34
25   - python: "3.5"
26     env: TOXENV=py35
27   - python: "3.6"
28     env: TOXENV=py36
29   - python: "3.7"
30     dist: xenial
31     env: TOXENV=py37
32   - python: "2.7"
33     env: TOXENV=py27-flake8
34   - python: "3.7"
35     dist: xenial
36     env: TOXENV=py37-flake8
37   - python: "pypy"
38     env: TOXENV=pypy
39
40   allow_failures:
41     - env: TOXENV=pypy
42
43 install:
44   - travis_retry pip install --upgrade "pip < 19.1" setuptools tox ppu
45
46 script:
47   - tox
48
49 before_cache:
50   - remove-old-files.py -o 180 ~/.cache/pip