-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy path.travis.yml
63 lines (55 loc) · 1.54 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
language: generic
dist: trusty
sudo: false
os:
- linux
- osx
env:
matrix:
- PYTHON_VERSION=2.7
- PYTHON_VERSION=3.5
- PYTHON_VERSION=3.6
global:
- MINCONDA_VERSION="latest"
- MINCONDA_LINUX="Linux-x86_64"
- MINCONDA_OSX="MacOSX-x86_64"
addons:
apt:
packages:
- libblas-dev
- liblapack-dev
- gfortran
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;
sudo apt-get update;
elif [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
MINCONDA_OS=$MINCONDA_OSX;
brew update;
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
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
conda install python.app;
fi
- conda create -q -n test-environment python=$PYTHON_VERSION pip numpy matplotlib
- source activate test-environment
- "pip install -q pytest"
- "pip install -q coverage"
- "pip install -r requirements.txt"
- "conda list" # Show the package versions (for debugging)
install:
- "pip install ."
script:
- "coverage run --source=libtlda -m pytest"
after_script:
- "pip install scrutinizer-ocular"
- "ocular"