-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
157 lines (137 loc) · 3.75 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
# https://travis-ci.org/burgerbecky/makeprojects
# Docs for Travis https://docs.travis-ci.com/
# Python testing
language: python
# Cache the python pip and environment folders
cache:
directories:
- "$HOME/.cache/pip"
- "$HOME/.pyenv"
# Only track the master branch, don't process pull requests
branches:
only:
- master
# Allow apt-update
addons:
apt:
update: true
# Test on Linux and MacOS versions of Python
# Windows is tested at Olde Skuul
matrix:
include:
# Windows builds (Not supported for python on 3/19/2019)
#- os: windows
# dist: 1803-containers
# python: '2.7'
# env: TOXENV=py27
# Linux builds
# Linux versions
# precise = 12.04
# trusty = 14.04
# xenial = 16.04
# bionic = 18.04
- os: linux
dist: xenial
sudo: false
python: '2.7'
env: TOXENV=py27
- os: linux
dist: xenial
sudo: false
python: '3.4'
env: TOXENV=py34
- os: linux
dist: xenial
sudo: false
python: '3.5'
env: TOXENV=py35
- os: linux
dist: xenial
sudo: false
python: '3.6'
env: TOXENV=py36
- os: linux
dist: xenial
sudo: false
python: '3.7-dev'
env: TOXENV=py37
- os: linux
dist: trusty
sudo: false
python: 'pypy'
env: TOXENV=pypy
- os: linux
dist: trusty
sudo: false
python: 'pypy3'
env: TOXENV=pypy3
- os: linux
dist: trusty
sudo: false
python: 'pypy-5.4'
env: TOXENV=pypy
# macOS builds
- os: osx
language: objective-c
env:
- TOXENV=py27
- PYENV_VERSION=2.7.15
- os: osx
language: objective-c
env:
- TOXENV=py34
- PYENV_VERSION=3.4.8
- os: osx
language: objective-c
env:
- TOXENV=py35
- PYENV_VERSION=3.5.5
- os: osx
language: objective-c
env:
- TOXENV=py36
- PYENV_VERSION=3.6.5
- os: osx
language: objective-c
env:
- TOXENV=py37
- PYENV_VERSION=3.7-dev
# Before installing python packages, make sure python is present
before_install:
# macOS needs some pyenv love.
- pyenv versions
- pyenv install --list
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then eval "$(pyenv init -)"; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pyenv install -s $PYENV_VERSION; fi
- python --version
- uname -a
- echo $PATH
# Debug spew for linux
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then lsb_release -a; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then readlink -f `which python`; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ls $(dirname $(readlink -f `which python`)); fi
# Install python packages needed for this test and get versions for log
install:
- pip install burger
- pip install tox-travis wheel codecov coverage
- virtualenv --version
- easy_install --version
- pip --version
- tox --version
# Tox does all the work
script:
- tox
# Output the errors, if any
after_failure:
- more temp/tox/log/* | cat
- more temp/tox/*/log/* | cat
# Send a pass/fail to us
notifications:
slack:
rooms:
secure: jsn83OekZv/QKLeUYivtG/R7A9wyNOjaNOj7a3pluwI8IEcL9wmsc7jNHVPLFYkAtcWcg8W5r0mE2Ewm2l2l5a6ZRoW9s7m9VCHdfWnRE7T7+YbdLNvpT8+pXdfPRD3eG1EULbk6ffUBphiM+1UCv4otkOPVXUCUvLQ8r0uLWg0gEsvf53wkxz90KqSC/c3Ta1ct7XLaRgPVTxwz48JY+RdSP2z/rrQmMq1xOQ2/40QdJZJ0thH+euuam2HaPCN9kwbdtGCQzdr4IvKD108yUR5bOfMTpTuJrNcRszUv5W1n4msbmH+VbNTgoxvLrvP5WcYtamlfsrs4trOSUopz/ENXtPCphst+frs2DNWbrBxutBTfwljDn4ay29YNT2L3c1Ml9PM9rdYg1kWOL4610CP80ZgK8tB7rzNslOMcCs7hV8uXSvYkVrRX8CXgF/xYSmBFr8uVtFF7/g9APITFNVvwSIVy9UjxhzEOnf4AcbEUTfQWiZBL+hVclNhTXDBYR3TRaRpY45kUOfGEyycMrwud7evqx/LGhrv9auQiZukto+A0Gu/LLac/BQ30jlmIsu5u8qa0iM6HZA3av+alHkH9rrG9SIOEP0Hq4tKyhMg3q/c5wxoq1co9T6Eeg9qQoy7Aa1MMH7rhQ9R3AST/dFU1CVyvnE8mNgQ1KfUzJ3c=
on_success: always
on_failure: always
email:
on_success: change
on_failure: always