forked from dfm/george
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
64 lines (53 loc) · 1.3 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
sudo: false
language: generic
dist: trusty
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
env:
global:
- TEST_LANG='python'
matrix:
include:
# This build will compile the LaTeX source of the paper
- os: linux
env: TEST_LANG='paper'
# Linux, Python 2.7
- os: linux
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.10
- os: linux
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.11
- os: linux
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.12
# Linux, Python 3.5
- os: linux
env: PYTHON_VERSION=3.5 NUMPY_VERSION=1.12
# Linux, Python 3.6
- os: linux
env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.11
- os: linux
env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12
# OSX
- os: osx
env: PYTHON_VERSION=2.7 NUMPY_VERSION=1.12
- os: osx
env: PYTHON_VERSION=3.6 NUMPY_VERSION=1.12
install:
- source .ci/travis.sh
script: |
if [[ $TEST_LANG == paper ]]
then
source .ci/build-paper.sh
elif [[ $TEST_LANG == python ]]
then
py.test -v --cov george
fi
after_success: |
if [[ $TEST_LANG == python ]]
then
coveralls
fi