-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
78 lines (68 loc) · 2.34 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
language: python
notifications:
irc:
channels:
- "irc.oftc.net#tor-ci"
template:
- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
- "Build details : %{build_url}"
on_success: always
on_failure: always
email:
recipients:
on_success: never
on_failure: change
python:
- "2.7"
addons:
hosts:
- bridges.torproject.org
env:
global:
# Fixes Travis-CI issue #1748, which was causing non-deterministic CI test failures,
# particularly in the lib/bridgedb/test/test_https.py integration tests which use
# the Python mechanize module to test the HTTPS server.
# See https://github.com/travis-ci/travis-ci/issues/1748
# https://travis-ci.org/isislovecruft/bridgedb/jobs/50169439#L1763
# https://stackoverflow.com/questions/2192323/what-is-the-python-egg-cache-python-egg-cache
# https://github.com/pypa/virtualenv/issues/459
- PYTHON_EGG_CACHE="${HOME}/.python-eggs-$(echo $RANDOM$PPID$RANDOM | sha256sum | cut -d ' ' -f 1)"
matrix:
# What we're running on polyanthum
- TWISTED_VERSION=16.1.1 PYOPENSSL_VERSION=16.2.0
# Debian Stretch
- TWISTED_VERSION=16.6.0 PYOPENSSL_VERSION=16.2.0
# Debian experimental (all other versions of Debian have the same dependency versions right now)
- TWISTED_VERSION=17.1.0 PYOPENSSL_VERSION=16.2.0
matrix:
include:
- python: "pypy"
env: TWISTED_VERSION=16.1.1 PYOPENSSL_VERSION=16.2.0
- python: "pypy"
env: TWISTED_VERSION=16.6.0 PYOPENSSL_VERSION=16.2.0
allow_failures:
- python: "2.7"
env: TWISTED_VERSION=16.6.0 PYOPENSSL_VERSION=16.2.0
- python: "2.7"
env: TWISTED_VERSION=17.1.0 PYOPENSSL_VERSION=16.2.0
- python: "pypy"
env: TWISTED_VERSION=16.1.1 PYOPENSSL_VERSION=16.2.0
- python: "pypy"
env: TWISTED_VERSION=16.6.0 PYOPENSSL_VERSION=16.2.0
fast_finish: true
before_install:
- sudo apt-get update
- mkdir $PYTHON_EGG_CACHE
- chmod -R og-w $PYTHON_EGG_CACHE
install:
- TWISTED_VERSION=$TWISTED_VERSION PYOPENSSL_VERSION=$PYOPENSSL_VERSION ./scripts/install-dependencies
- make install
# Start a BridgeDB instance before running the tests:
before_script:
- ./scripts/setup-tests
- bridgedb -r run &
script:
- make coverage-test
after_success:
- coveralls --rcfile=".coveragerc"