forked from twisted/twisted
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
88 lines (73 loc) · 2.41 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
84
85
86
87
88
#
# 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
dist: xenial
# 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
# Version which should be removed from the cache.
- PREVIOUS_PYPY_VERSION=pypy=5.3.1
# Some python versions (like PYPY) are installed using pyenv and we cache
# the compiled version.
- PYENV_ROOT="$HOME/.pyenv"
jobs:
include:
- services:
- docker
env: PIP=pip TOXENV=wheels
- python: 3.5
env: TOXENV=py35-alldeps-withcov-posix,coverage-prepare,codecov-push,coveralls-push
- python: 3.6
env: TOXENV=py36-nodeps-withcov-posix,coverage-prepare,codecov-push,coveralls-push
- python: 3.6
env: TOXENV=py36-alldeps-withcov-posix,coverage-prepare,codecov-push,coveralls-push
- python: 3.7
env: TOXENV=py37-alldeps-withcov-posix,coverage-prepare,codecov-push,coveralls-push
- python: 3.8
env: TOXENV=py38-alldeps-withcov-posix,coverage-prepare,codecov-push,coveralls-push
- python: 3.6
env: TOXENV=lint
# 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,coverage-prepare,codecov-push,coveralls-push DISABLE_IPV6=yes
- python: pypy3
env: TOXENV=pypy-nodeps-withcov-posix,coverage-prepare,codecov-push,coveralls-push PYPY_VERSION=pypy3.6-7.3.0
addons:
apt:
packages:
- libssl-dev
- libssl1.0.0
cache:
directories:
- $HOME/.cache/pip
- $PYENV_ROOT
before_cache:
# Show the current cache size and try to delete things which are no longer
# needed.
- du -h $HOME/.cache/pip
- du -h $PYENV_ROOT
- rm -f $HOME/.cache/pip/log/debug.log
- pyenv uninstall -f $PREVIOUS_PYPY_VERSION
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