forked from ROBelgium/MSNoise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
70 lines (61 loc) · 1.98 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
# Miniconda stuff shamelessly copied from
# https://gist.github.com/dan-blanchard/7045057
# and
# https://github.com/Jorge-C/ordination/blob/master/.travis.yml
language: c
matrix:
include:
# do one build run with our minimum dependencies
# (or, well, at least the lowest version number that is available through
# anaconda..)
- os: linux
env: PYTHON_VERSION=2.7
- os: linux
env: PYTHON_VERSION=3.6
- os: osx
env: PYTHON_VERSION=2.7
- os: osx
env: PYTHON_VERSION=3.6
sudo: false
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export OS="MacOSX";
else
export OS="Linux";
fi
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then brew update > /dev/null && brew install mariadb && brew services start mariadb; fi
- if [[ $TRAVIS_OS_NAME == "osx" ]]; then mkdir /usr/local/etc/my.cnf.d; fi
# MySQL database
- mysql -u root -e "create database msnoise;"
# Python and related stuff
- if [[ "${PYTHON_VERSION:0:1}" == '2' ]]; then
wget https://repo.continuum.io/miniconda/Miniconda2-latest-${OS}-x86_64.sh -O miniconda.sh;
else
wget https://repo.continuum.io/miniconda/Miniconda3-latest-${OS}-x86_64.sh -O miniconda.sh;
fi
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda update -q --yes conda
# Installs required packages
- conda install --yes -q pip python=$PYTHON_VERSION
- conda install --yes -q numpy scipy matplotlib pandas sqlalchemy
- conda install --yes -q sphinx jinja2 flask pymysql click
- conda install --yes -q lxml pyqt
- conda install --yes -q -c conda-forge obspy
- conda install --yes -q -c conda-forge flask-admin markdown codecov
- pip install logbook
- ls -la
install:
- python setup.py install
- cd
script:
- mkdir empty
- cd empty
- msnoise --help
- msnoise bugreport -s -m -e
- cd ..
- mkdir MSNoiseTest
- cd MSNoiseTest
- coverage run --include='*/msnoise/*' -m msnoise.test.tests
- codecov