-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy path.travis.yml
34 lines (31 loc) · 1.19 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
language: python
python:
- 2.7
notifications:
email: true
sudo: true
before_install:
- sudo apt-get install fort77 gfortran # libopenblas-dev liblapack-dev
- wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- chmod +x miniconda.sh
- ./miniconda.sh -b
- export PATH=/home/travis/miniconda2/bin:$PATH
- conda update --yes conda
# Fingers crossed..
- "export QT_API=pyside"
# So that we can use matplotlib on Travis.
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- "mkdir $HOME/.smh"
install:
- conda install --yes python=$TRAVIS_PYTHON_VERSION atlas numpy scipy astropy matplotlib nose six coverage
# Pyside is not natively supported in conda yet for Python 3
# See https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/6q1StqOb_Vc
- if [[ $TRAVIS_PYTHON_VERSION == 2* ]]; then conda install --yes python=$TRAVIS_PYTHON_VERSION pyside; fi
- if [[ $TRAVIS_PYTHON_VERSION == '3.4' ]]; then pip install pyside; fi
- pip install https://github.com/andycasey/moog/archive/makefile-templates.zip -vvv
- python setup.py install
script:
- nosetests --with-coverage --cover-package=smh
after_success:
coveralls