forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
73 lines (57 loc) · 1.61 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
#
# This is the Travis-CI configuration.
#
# The actual dependency installation and test execution is done via tox as a
# way to share the same process between Travis-CI and Buildbot.
#
language: python
sudo: false
# Only run tests on push on a few branches.
# Test on PR should be execute for all branches and forks.
branches:
only:
- trunk
- /^release-.*$/
env:
global:
- TRIAL_REPORTER=text
matrix:
include:
- python: 2.7
env: TOXENV=py27-alldeps-withcov-posix,codecov-publish
- python: 2.7
env: TOXENV=py27-nodeps-withcov-posix,codecov-publish
- python: 3.4
env: TOXENV=py34-alldeps-withcov-posix,codecov-publish
- python: 3.5
env: TOXENV=py35-alldeps-withcov-posix,codecov-publish
- python: 3.6
env: TOXENV=py36-alldeps-withcov-posix,codecov-publish
- python: 3.5
env: TOXENV=txchecker-travis-required
# We need a builder without IPv6. This is going to be slower than all the
# others, but that's ok.
- python: 3.6
env: TOXENV=py36-alldeps-withcov-posix,codecov-publish DISABLE_IPV6=yes
sudo: true
addons:
apt:
packages:
- libssl-dev
- libssl1.0.0
cache:
directories:
- $HOME/.cache/pip
- $HOME/.pyenv
install:
- ./.travis/install.sh tox
# FIXME: https://twistedmatrix.com/trac/ticket/8373
# By default, Travis only clones one branch.
# Some tests require the presence of the `trunk` branch so here we are, also
# fetching `trunk` for each test.
before_script:
- git remote set-branches --add origin trunk
- git fetch origin trunk
# Run tox from the created virtualenv.
script:
- ./.travis/run.sh