forked from pyrocko/pyrocko
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
45 lines (37 loc) · 1.49 KB
/
Copy path.travis.yml
File metadata and controls
45 lines (37 loc) · 1.49 KB
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
language: python
matrix:
include:
- os: linux
sudo: required
python: 2.7
cache: pip
virtualenv:
system_site_packages: true
- os: osx
osx_image: xcode7.3
language: generic
addons:
apt:
packages: [ python-dev, python-scipy, gfortran, libatlas-dev, libopenblas-dev, python-matplotlib, python-yaml, python-tk, libyaml-dev ]
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/science; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew tap homebrew/python; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew unlink libyaml; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install gcc libyaml; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then pip install matplotlib; fi
- pip install progressbar setuptools flake8 pyyaml coveralls
- easy_install pyavl
- curl -s http://kinherd.org/fomosto-qseis-2006a.tar.gz | tar zvx
- cd fomosto-qseis-2006a; ./configure; make; export PATH=$PATH:`pwd`/src; cd ..
before_script:
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then flake8 src/ apps/ test/ ; fi
install:
- sudo python setup.py install
script:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then python test/test_all.py ; fi
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then coverage run --source=pyrocko test/test_all.py ; fi
after_success:
- coveralls
notifications:
email: false