-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
30 lines (30 loc) · 965 Bytes
/
.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
language: python
python:
- "2.7"
- "3.3"
- "3.4"
- "3.5"
- "pypy"
- "pypy3"
- "3.5-dev" # 3.5 development branch
- "3.6-dev" # 3.6 development branch
- "nightly" # currently points to 3.7-dev
os:
- linux
# - osx # osx+python installation fails
matrix:
# ignore all but the most recent, stable releases
allow_failures:
- python: "3.5-dev"
- python: "3.6-dev"
- python: "nightly"
before_script:
- export PYTHONHASHSEED=${PYTHONHASHSEED:-${RANDOM}}
- if [[ $TRAVIS_PYTHON_VERSION != "3.2" ]]; then COVERAGE_SUPPORTED="Yes"; echo "coverage reports enabled"; fi
- if [[ -n "$COVERAGE_SUPPORTED" ]]; then pip install codecov; fi
- export COVERAGE_PROCESS_START=$(pwd)/.coveragerc
- echo "export PYTHONHASHSEED=${PYTHONHASHSEED}"
script:
- if [[ -n "$COVERAGE_SUPPORTED" ]]; then coverage run setup.py test; else python setup.py test; fi
after_success:
- if [[ -n "$COVERAGE_SUPPORTED" ]]; then coverage report && codecov; fi