forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
72 lines (63 loc) · 1.86 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
#
# 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
env:
global:
- TRIAL_REPORTER=text
matrix:
include:
- python: 2.7
env: TOXENV=py27-coverage-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-nomodules-posix
- python: 3.3
env: TOXENV=py33-coverage-posix,codecov-publish
- python: 3.4
env: TOXENV=py34-coverage-posix,codecov-publish
- python: 3.5
env: TOXENV=py35-coverage-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
#
# OSX 10.10
#
- language: generic
os: osx
# 7.1 is OS X 10.10.x
# see: https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions
osx_image: xcode7.1
python: 2.7
env: TOXENV=py27-coverage-posix,codecov-publish
allow_failures:
# For now, OSX run on Travis-CI has a few failures.
- os: osx
addons:
apt:
packages:
- libssl-dev
- libssl1.0.0
cache:
directories:
- $HOME/.cache/pip
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