forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
83 lines (67 loc) · 2.01 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
79
80
81
82
83
#
# 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
# FIXME: https://twistedmatrix.com/trac/ticket/8633
# Coverage should also be reported for nomodules tests so that we also
# get report for those conditional branches.
- python: 2.7
env: TOXENV=py27-nodeps-withcov-posix,codecov-publish
- python: 3.3
env: TOXENV=py33-alldeps-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
# For now all non-trial tests are in a single job to reduce the time spent
# on starting separate jobs.
- python: 2.7
env: TOXENV=narrativedocs,apidocs,pyflakes,topfile,manifest-checker
- python: 3.5
env: TOXENV=pyflakes3
# Twistedchecker is running as a separate job so that we can ignore if it
# fails.
- python: 3.5
env: TOXENV=txchecker-travis-required
- python: 3.5
env: TOXENV=txchecker-travis-all
allow_failures:
- env: TOXENV=txchecker-travis-all
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