forked from ROBelgium/MSNoise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (63 loc) · 2.11 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
71
72
# 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
services:
- mysql
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=3.7
- os: linux
env: PYTHON_VERSION=3.8
- os: osx
env: PYTHON_VERSION=3.7
- os: osx
env: PYTHON_VERSION=3.8
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
# Wait for mysql service to respond
# - which mysql && until mysql -u root -e "show status" &>/dev/null; do sleep 1; done
# MySQL database
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then mysql -u root -e "create database msnoise;"; fi
# Python and related stuff
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-${OS}-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --add channels conda-forge
- conda config --add channels conda-forge
- 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/*/*','*/msnoise/*' -m msnoise.test.tests
- codecov