forked from sunpy/sunpy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (63 loc) · 2.74 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
language: python
python:
- 2.6
- 2.7
virtualenv:
system_site_packages: false
# Configure the build environment. Global varibles are defined for all
# configurations. Each configuration in the matrix is run for each python version
# above.
env:
global:
- PIP_WHEEL_COMMAND="--use-mirrors --find-links http://sunpy.cadair.com/wheelhouse/index.html --use-wheel --upgrade"
- SUDS_PKG='suds-jurko==0.4.1.jurko.4'
- TEST_MODE='tests'
matrix:
- NUMPY_VERSION=1.8.0 PANDAS_VERSION=0.12.0
- NUMPY_VERSION=1.7.1 PANDAS_VERSION=0.12.0
- NUMPY_VERSION=1.8.0 PANDAS_VERSION=0.11.0
matrix:
include:
- python: 2.7
env: TEST_MODE='sphinx' NUMPY_VERSION=1.8.0 PANDAS_VERSION=0.12.0
before_install:
# Pick the suds version based on the python version
- if [[ $TRAVIS_PYTHON_VERSION == '2.6' ]]; then SUDS_PKG='suds' ;fi
# Make sure the system is upto date and install scipy requirements
- sudo apt-get update -qq
- sudo apt-get install -qq libatlas-dev liblapack-dev gfortran
- if [[ $TEST_MODE == 'sphinx' ]]; then sudo apt-get install graphviz texlive-latex-extra dvipng; fi
# Make sure pip is at the latest version (>1.4 for wheels)
- pip install pip --upgrade
# Wheels also need a recent version of setuptools
- pip install setuptools>=0.8 --upgrade
# Install more upto date openjpeg library.
- wget http://openjpeg.googlecode.com/files/openjpeg-1.5.0-Linux-x86_64.tar.gz
- sudo tar -xvf openjpeg-1.5.0-Linux-x86_64.tar.gz --strip-components=1 -C /
# Install coveralls
- pip install $PIP_WHEEL_COMMAND python-coveralls pytest-cov
# Install all SunPy dependacies using wheels.
install:
# Install Numpy first so we force the version we are using
- pip install $PIP_WHEEL_COMMAND numpy==$NUMPY_VERSION
- pip install $PIP_WHEEL_COMMAND matplotlib
- pip install $PIP_WHEEL_COMMAND scipy
# Manually install pandas deps due to a pip 1.4 / pytz bug
- pip install $PIP_WHEEL_COMMAND pytz==2013b python-dateutil
- pip install $PIP_WHEEL_COMMAND pandas==$PANDAS_VERSION
- pip install $PIP_WHEEL_COMMAND astropy>=0.3.0
- pip install $PIP_WHEEL_COMMAND $SUDS_PKG beautifulsoup4
- pip install $PIP_WHEEL_COMMAND pytest
- pip install $PIP_WHEEL_COMMAND glymur
#Install sphinx if needed
- if [[ $TEST_MODE == 'sphinx' ]]; then pip install $PIP_WHEEL_COMMAND sphinx>=1.2; fi
# Install SunPy and run tests.
script:
- python setup.py develop
- if [[ $TEST_MODE == 'sphinx' ]]; then cd doc/source && sphinx-build -W -b html -d _build/doctrees . _build/html; fi
- if [[ $TEST_MODE == 'tests' ]]; then py.test -k-fails_on_travis --cov-report html --cov sunpy; fi
after_success:
- coveralls
# Notify the IRC channel of build status
notifications:
irc: "chat.freenode.net#SunPy"