-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
56 lines (48 loc) · 1.28 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
language: python
dist: trusty
matrix:
fast_finish: true
include:
- python: 3.5
env:
- PYTHON_VERSION=python3.5
- TOXENV=py35
- python: 3.6
env:
- PYTHON_VERSION=python3.6
- TOXENV=py36
- python: 3.7-dev
env:
- PYTHON_VERSION=python3.7
- TOXENV=py37
- python: 3.6
env:
- PYTHON_VERSION=python3.6
- TOXENV=style
allow_failures:
- python: 3.7-dev
env:
- PYTHON_VERSION=python3.6
- TOXENV=style
# http://stackoverflow.com/a/19460794/315168
cache:
directories:
# /home/travis/.cache/pip/wheels is the normal pip cache folder
- $HOME/.cache/pip
#- .tox
install:
- travis_retry pip install tox
before_script:
- pip install -U pip
script:
# https://pypi.python.org/pypi/coverage_enable_subprocess
- pip install coverage-enable-subprocess
- export COVERAGE_PROCESS_START=$PWD/.coveragerc
# This env variable is passed to scaffold tests that test the tests themselves
- export TRAVIS=true
- tox --
after_success:
# Update coverage information in codecov.io.
- .tox/py35/bin/codecov
# Dump package list so we have a log of last known good version set
- .tox/py35/bin/pip freeze