forked from SecurityInnovation/PGPy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
46 lines (46 loc) · 1.24 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
language: python
python:
- "3.5"
- "3.4"
- "3.3"
- "2.7"
- "pypy"
- "pypy3"
matrix:
include:
# add a pep8 test
- python: 3.5
env: TOXENV=pep8
# test setup.py using each tested version
- python: 3.5
env: TOXENV=setup35
- python: 3.4
env: TOXENV=setup34
- python: 3.3
env: TOXENV=setup33
- python: 2.7
env: TOXENV=setup27
allow_failures:
# pep8 failures shouldn't be considered fatal
- env: TOXENV=pep8
# pypy and pypy3 tests are just for fun
- python: "pypy"
- python: "pypy3"
# install requirements
install:
# make sure libffi-dev, gnupg2, and pgpdump are installed
- sudo apt-get update
- sudo apt-get install -y libffi-dev gnupg2 pgpdump
# ensure tox and coveralls are installed
- pip install tox python-coveralls
# set TOXENV if it isn't yet
before_script:
- if [[ -z "$TOXENV" ]]; then export TOXENV=py${TRAVIS_PYTHON_VERSION//.}; fi
- if [[ "$TRAVIS_PYTHON_VERSION" == 'pypy' ]]; then export TOXENV=pypy; fi
- if [[ "$TRAVIS_PYTHON_VERSION" == 'pypy3' ]]; then export TOXENV=pypy3; fi
# run tox
script:
- ./tox.sh
# and report coverage to coveralls, but only if this was a pytest run
after_success:
- if [[ "${TOXENV}" == "py"* ]]; then coveralls; fi