-
Notifications
You must be signed in to change notification settings - Fork 3
/
.travis.yml
40 lines (36 loc) · 1.01 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
language: python
python: "3.5"
sudo: false
env:
global:
- PIP_DOWNLOAD_CACHE=$HOME/.pip-cache
- secure: "vbmp+Jid6vuRUQsTMKiJprbW4T0N4WmAPfkEEmc1PsriH+99fXV8PEwaitEdhBNgrmAf1bFV7mtpuVfUEVeGgND3RVND9LUj/ep/+MFc5gFY6OmqcPngn7vcST5RTpoDqGX7hBrjpP55szwCwB8Vklo5IXZUxHL7hOT+blbkWvc="
- PYTHONUNBUFFERED=yes
matrix:
- TOXENV=py27
- TOXENV=py34
- TOXENV=py35
# - TOXENV=pypy
# - TOXENV=pypy3
# - TOXENV=codequality
before_install:
- python --version
- printenv
- uname -a
install: travis_retry pip install -U tox
script:
- |
if [[ -n "$TOXENV" ]]; then
tox -v
else
deactivate
which python
python --version
[[ $(python -c "import sys; print(hasattr(sys, 'real_prefix'))") == False ]] \
&& pip install pytest pytest-cov ddt testtools pycrypto tox pyyaml python-dateutil requests \
&& make test-ci
fi
after_success:
- travis_retry pip install codecov codacy-coverage
- codecov --env TOX_ENV
- python-codacy-coverage -r coverage.xml