-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
executable file
·99 lines (79 loc) · 2.84 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Config file for automatic testing at travis-ci.org
language: python
dist: trusty
sudo: false
addons:
apt:
packages:
- libboost-all-dev
- build-essential
- libc6-dev
- libpthread-stubs0-dev
- snappy
matrix:
include:
- python: 2.7
env: PYTHON=2.7 ROOT=5.34.32
- python: 3.4
env: PYTHON=3.4 ROOT=5.34.32
- python: 2.7
env: PYTHON=2.7 ROOT=6.04
- python: 3.4
env: PYTHON=3.4 ROOT=6.04
allow_failures:
- python: 2.7
env: PYTHON=2.7 ROOT=5.34.32
- python: 2.7
env: PYTHON=2.7 ROOT=6.04
- python: 3.4
env: PYTHON=3.4 ROOT=5.34.32
notifications:
email:
webhooks:
urls:
- https://webhooks.gitter.im/e/09d571df0e21d4d4182f
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: false # default: false
services:
- mongodb
before_script:
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then
export DISPLAY=:99.0;
sh -e /etc/init.d/xvfb start;
sleep 3;
fi
before_install:
# Conda
- if [ "${TRAVIS_OS_NAME}" == "osx" ]; then curl --silent http://repo.continuum.io/miniconda/Miniconda-latest-MacOSX-x86_64.sh -o miniconda.sh; fi
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then wget -nv http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh; fi
- export CONDA_ENV_PATH=$HOME/miniconda/envs/pax # a workaround since CONDA_ENV_PATH magically dissapeared from Conda
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
#- conda install -q conda=4.1.1
- conda info -a # Useful for debugging any issues with conda
- conda config --add channels defaults
- conda config --add channels http://conda.anaconda.org/NLeSC
- conda config --add channels http://conda.anaconda.org/conda-forge
- conda config --add channels http://conda.anaconda.org/remenska
- conda create -q -n pax python=${PYTHON} root=${ROOT} numpy scipy h5py pyqt matplotlib pandas cython numba pip python-snappy pytables scikit-learn rootpy psutil jupyter root_pandas
- source activate pax
install:
- pip install coveralls nose coverage
# Install pax
- pip install mongodbproxy # Somehow needs explicit install?
- pip install -r requirements.txt
- python setup.py install
- pip freeze
# Run a simple test file, to see if the tests load
# If there is an import failure, you don't get to know which import is failing otherwise
- python tests/test_maxpmt.py
# command to run tests, e.g. python setup.py test
script:
- make test
- make lint