forked from NLeSC/mcfly
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
52 lines (45 loc) · 1.35 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
language: generic
dist: trusty
sudo: false
os:
- linux
- osx
env:
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.4
- PYTHON_VERSION=3.5
- PYTHON_VERSION=3.6
global:
- MINCONDA_VERSION="latest"
- MINCONDA_LINUX="Linux-x86_64"
- MINCONDA_OSX="MacOSX-x86_64"
before_install:
- if [[ "$PYTHON_VERSION" == "2.7" ]]; then
MINCONDA_PYTHON_VERSION=2;
else
MINCONDA_PYTHON_VERSION=3;
fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
MINCONDA_OS=$MINCONDA_LINUX;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
MINCONDA_OS=$MINCONDA_OSX;
fi
- wget "http://repo.continuum.io/miniconda/Miniconda$MINCONDA_PYTHON_VERSION-$MINCONDA_VERSION-$MINCONDA_OS.sh" -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes
- conda update -q conda
- conda create -q -n test-environment python=$PYTHON_VERSION pip openblas numpy scipy
- source activate test-environment
- "pip install -q nose"
- "pip install 'coverage<4'" # After 4, there is some issue when using python 3.2
- "pip install -qr requirements.txt"
install:
- "echo done"
# command to run tests, e.g. python setup.py test
script:
- nosetests --with-coverage --cover-package=mcfly
after_script:
- "pip install scrutinizer-ocular"
- "ocular"