Merge branch 'release-0.11.0'
[tor-bridgedb.git] / .travis.yml
blobe57481ddf652adc573852438d12f6f1bc7383a1c
1 language: python
3 notifications:
4   irc:
5     channels:
6       - "irc.oftc.net#tor-ci"
7     template:
8       - "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}"
9       - "Build details : %{build_url}"
10     on_success: always
11     on_failure: always
12   email:
13     recipients:
14       - phw@torproject.org
15     on_success: never
16     on_failure: change
18 python:
19   - "3.7"
21 addons:
22   hosts:
23     - bridges.torproject.org
25 env:
26   global:
27     # Fixes Travis-CI issue #1748, which was causing non-deterministic CI test failures,
28     # particularly in the lib/bridgedb/test/test_https.py integration tests which use
29     # the Python mechanize module to test the HTTPS server.
30     # See https://github.com/travis-ci/travis-ci/issues/1748
31     #     https://travis-ci.org/isislovecruft/bridgedb/jobs/50169439#L1763
32     #     https://stackoverflow.com/questions/2192323/what-is-the-python-egg-cache-python-egg-cache
33     #     https://github.com/pypa/virtualenv/issues/459
34     - PYTHON_EGG_CACHE="${HOME}/.python-eggs-$(echo $RANDOM$PPID$RANDOM | sha256sum | cut -d ' ' -f 1)"
36 before_install:
37   - sudo apt-get update
38   - mkdir $PYTHON_EGG_CACHE
39   - chmod -R og-w $PYTHON_EGG_CACHE
41 install:
42   - ./scripts/install-dependencies
43   - make install
45 # Start a BridgeDB instance before running the tests:
46 before_script:
47   - ./scripts/setup-tests
48   - bridgedb -r run &
50 script:
51   - make coverage-test
53 after_success:
54   - coveralls --rcfile=".coveragerc"