-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
48 lines (39 loc) · 1.39 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
language: python
python:
- "2.7"
virtualenv:
system_site_packages: true
before_install:
# We will need PyGithub and pyimgur to update the GitHub commit status and upload images of results
# Note: We need my fork of PyGithub until https://github.com/jacquev6/PyGithub/pull/289 is merged.
- pip install https://github.com/andycasey/PyGithub/archive/master.zip
- pip install pyimgur
# If we are on a PR, send a 'pending' status for the science-verification
- python status.py
# Now install the things we actually need for running oracle
- sudo apt-get install gfortran libopenblas-dev liblapack-dev libcfitsio3-dev python-matplotlib python-pyfits python-scipy
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- pip install coveralls
install:
- pip install -r requirements.txt --use-mirrors
- python setup.py install --with-models
script:
- nosetests -v -w tests --with-coverage --cover-package=oracle
after_success:
- coveralls
# If we are on a pull request, run the science verification tests
- "mkdir science; cp science.py science/"
- "cp tests/benchmarks/galah* science/"
- cd science
- "if [[ $TRAVIS_PULL_REQUEST != 'false' ]]; then python science.py > science.log; fi"
- cd ../
after_script:
# If we are on a PR, update the status for science-verification
- python status.py
notifications:
email:
recipients:
on_success: change
on_failure: change