forked from apetri/LensTools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
65 lines (54 loc) · 1.77 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
language: python
python:
- 3.6
- 3.7
notifications:
email: false
services:
- xvfb
#####################################################
#From: https://gist.github.com/dan-blanchard/7045057#
#####################################################
#Setup anaconda
before_install:
- if [[ "$TRAVIS_PYTHON_VERSION" == "2.7" ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O miniconda.sh;
export PATH=/home/travis/miniconda2/bin:$PATH;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
export PATH=/home/travis/miniconda3/bin:$PATH;
fi
- chmod +x miniconda.sh
- ./miniconda.sh -b
- conda update --yes conda
#GSL
- mkdir cextern
- "export LD_LIBRARY_PATH=/home/travis/build/apetri/LensTools/cextern/lib:$LD_LIBRARY_PATH"
- wget http://ftpmirror.gnu.org/gsl/gsl-1.16.tar.gz
- tar -xvf gsl-1.16.tar.gz
- cd gsl-1.16
- ./configure --prefix=/home/travis/build/apetri/LensTools/cextern
- make
- make install
- cd ..
#LensTools data
- wget https://www.dropbox.com/s/oh526rkrhiy3m8u/data.tar.gz
- tar -xvf data.tar.gz
- mv Data LT_Data
#The next couple lines fix a crash with multiprocessing on Travis and are not specific to using Miniconda
#- sudo rm -rf /dev/shm
#- sudo ln -s /run/shm /dev/shm
#Install packages
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION numpy scipy sqlalchemy nose pandas numexpr astropy
#Coverage packages
- pip install matplotlib==1.5.1
- pip install coveralls
- python setup.py build_ext -i --gsl=/home/travis/build/apetri/LensTools/cextern
- python setup.py install --gsl=/home/travis/build/apetri/LensTools/cextern
#Run test
script:
- nosetests --with-coverage --cover-package=lenstools --logging-level=INFO
# Calculate coverage
after_success:
- coveralls