-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (51 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
os:
- linux
- osx
language: generic
env:
- PYTHON_VERSION="3.3"
- PYTHON_VERSION="3.4"
- PYTHON_VERSION="3.5"
matrix:
allow_failures:
- os: osx
exclude:
- os: osx
env: PYTHON_VERSION="3.3"
- os: osx
env: PYTHON_VERSION="3.4"
addons:
apt:
packages:
- libgsl0-dev
- gsl-bin
before_install:
- >
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh;
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- pwd
- export PATH=$HOME/miniconda3/bin:$PATH
- conda update --yes conda
- conda install -y -c https://conda.anaconda.org/asmeurer gsl
install:
- conda install --yes python=$PYTHON_VERSION gcc numpy scipy cython
- gcc --version
- python --version
- pip install nose2 nose-cov
- pip install coveralls
- C_INCLUDE_PATH=$HOME/miniconda3/envs/include make
# - conda install --yes -c dan_blanchard python-coveralls nose-cov
script:
- >
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
make test-coverage
else
DYLD_LIBRARY_PATH=$HOME/miniconda3/lib make test-coverage
fi
after_success:
- coveralls