forked from circus-tent/circus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (58 loc) · 1.84 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
language: python
sudo: false
addons:
apt:
packages:
- libev-dev
- libevent-dev
before_install:
# Try https://github.com/travis-ci/travis-ci/issues/8363#issuecomment-327857631
# to workaround Travis having broken Python3.5, and flaky 3.4
#
#
- pyenv global ${TRAVIS_PYTHON_VERSION}
- >
if [[ $TRAVIS_PYTHON_VERSION = "3.5" ]]; then deactivate; sudo rm -rf /opt/python /home/travis/virtualenv; sudo add-apt-repository -y ppa:deadsnakes/ppa;
sudo apt-get update; sudo apt-get install -y python3.5 python3.5-dev; pyenv rehash; pyenv global system; pip install -U virtualenv pip;
virtualenv --python=/usr/bin/python3.5 --no-site-packages ~/working_venv; source ~/working_venv/bin/activate;
python --version; which python; pip --version; fi
before_script:
# Add an IPv6 config - see the corresponding Travis issue
# https://github.com/travis-ci/travis-ci/issues/8361
# Taken from https://github.com/travis-ci/travis-ci/issues/8361#issuecomment-350497804
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
jobs:
include:
- python: 3.7
env: TOX_ENV=py37
# cf https://github.com/travis-ci/travis-ci/issues/9069#issuecomment-425720905
sudo: required
dist: xenial
- python: 3.6
env: TOX_ENV=docs
- python: 3.6
env: TOX_ENV=flake8
- python: 3.6
env: TOX_ENV=py36
- python: 3.5
env: TOX_ENV=py35
- python: 3.4
env: TOX_ENV=py34
- python: 2.7
env: TOX_ENV=py27
- python: 2.7
env: TOX_ENV=py27-no-gevent
- python: 2.6
env: TOX_ENV=py26
- python: 2.6
env: TOX_ENV=py26-no-gevent
script:
- tox -v -e $TOX_ENV
install:
- pip install tox
notifications:
email: tarek@mozilla.com
irc: "irc.freenode.org#mozilla-circus"
on_success: change