-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy path.travis.yml
60 lines (51 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
language: python
python:
- 2.7.13
# Use a matrix of TEST_SUITE variables to distribute tests to several machines
# Use a global PYTEST variable to run all of the tests in a uniform fashion
env:
global:
- PYTEST="bin/py.test -n 2 -vvs"
matrix:
- TEST_SUITE="$PYTEST"
- TEST_SUITE="./etc/release/release.sh"
# Travis does not offer OSX with arbitrary python versions (like 2.7.13 above)
# So, you can not simply have the following section in your build matrix:
# os:
# - linux
# - osx
# Instead, you have to include OSX entries into the build matrix manually.
# In particular, this means specifying the environment variables again.
# The following was adapted from here:
# https://docs.travis-ci.com/user/multi-os/
# Set TEST_SUITE in `env:` so that the `script:` section below works
# Set `language: generic` to clear `language: python` from above
# Set `python:` (to empty) to clear it from the travis-ci web interface
# Set `osx_image: xcode7.3` to pin OSX and Python versions, see here:
# https://docs.travis-ci.com/user/osx-ci-environment/
matrix:
include:
- os: osx
env: TEST_SUITE="$PYTEST"
language: generic
python:
osx_image: xcode7.3
- os: osx
env: TEST_SUITE="./etc/release/release.sh"
language: generic
python:
osx_image: xcode7.3
install:
- ./configure
script:
- $TEST_SUITE
notifications:
irc:
channels:
- "chat.freenode.net#aboutcode"
on_sucess: change
on_failure: always
use_notice: true
skip_join: true
template:
- "%{repository_slug}#%{build_number} (%{branch}-%{commit}:%{author})-%{message}- %{build_url}"