forked from DarkEnergySurvey/ugali
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (33 loc) · 1.12 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
language: python
python:
- "2.7"
- "3.6"
sudo: false
notifications:
email: false
before_install:
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n travis-env python=$TRAVIS_PYTHON_VERSION numpy scipy matplotlib astropy healpy pyyaml emcee nose fitsio corner -c conda-forge -c kadrlica
- source activate travis-env
# Setup dependencies and install package
install:
- export UGALIDIR="$HOME/.ugali"
- python setup.py -q install --isochrones --catalogs
before_script:
- export MPLBACKEND=Agg
- conda install ipython notebook;
- wget https://github.com/DarkEnergySurvey/ugali/releases/download/v1.7.0/ugali-test-data.tar.gz -O ugali-test-data.tar.gz
- tar -xzf ugali-test-data.tar.gz
# command to run tests
script:
#- nosetests -v --nocapture
- if [[ $TRAVIS_PYTHON_VERSION < 3.0 ]]; then
nosetests -v;
else
nosetests -v -I test_notebook.py;
fi