-
Notifications
You must be signed in to change notification settings - Fork 11
/
.travis.yml
74 lines (61 loc) · 1.9 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
sudo: required
language: python
dist: trusty
notifications:
email: true
python:
- 2.7
- 3.4
- 3.5
addons:
apt:
packages:
- gfortran
- liblensfun-dev
- libraw-dev
- libimage-exiftool-perl
before_install:
# Python
- wget https://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
- hash -r
# CDF
- wget -r -l1 -np -nd https://cdaweb.gsfc.nasa.gov/pub/software/cdf/dist/latest-release/linux/ -A cdf*-dist-all.tar.gz
- tar xf cdf*-dist-all.tar.gz
- cd cdf*dist
- make OS=linux ENV=gnu all
- sudo make INSTALLDIR=/usr/local/cdf install
- cd ..
# latest ffmpeg (Ubuntu 12.04 supplies 0.8.16 which is too old)
- wget http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz
- tar xf ffmpeg-release-64bit-static.tar.xz
- rm ffmpeg-release-64bit-static.tar.xz
- export PATH=$PATH:$PWD/`ls | grep ffmpeg-`
install:
- conda create --yes -n test python=$TRAVIS_PYTHON_VERSION
- source activate test
# we use conda to prevent compiling big packages
- conda install --yes numpy scipy astropy ephem numexpr scikit-image pillow matplotlib basemap docutils pip netcdf4
# OpenCV only supports Python 3 in OpenCV 3.x
- if [[ $TRAVIS_PYTHON_VERSION == 2.7 ]]; then
conda install --yes opencv ;
fi
- travis_retry pip install -r dev-requirements.txt
- python setup.py sdist
- pip install dist/*.tar.gz
# spacepy
- pip install spacepy
script:
- mkdir tmp_for_test
- cd tmp_for_test
# run tests and print syslog in case we get killed (to check for out of memory)
- nosetests --verbosity=3 --nocapture -a '!slow' ../auromat/test ;
RETVAL=$? ;
if [ $RETVAL -ne 0 ]; then
if [ $RETVAL -eq 137 ]; then
sudo tail -n 100 /var/log/syslog ;
fi ;
return $RETVAL ;
fi
- cd ..