-
Notifications
You must be signed in to change notification settings - Fork 15
/
.travis.yml
70 lines (61 loc) · 2.06 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=3.7
- os: osx
env: PYTHON_VERSION=3.7
sudo: false
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export OS="MacOSX";
else
export OS="Linux";
fi
# Python and related stuff
- if [[ "${PYTHON_VERSION:0:1}" == '2' ]]; then
wget https://repo.continuum.io/miniconda/Miniconda-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
# - wget http://repo.continuum.io/miniconda/Miniconda-latest-Linux-x86_64.sh -O miniconda.sh
- 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 -c conda-forge pip python=$PYTHON_VERSION
- conda install --yes -q -c conda-forge numpy scipy matplotlib statsmodels pandas sqlalchemy
- conda install --yes -q -c conda-forge sphinx jinja2 flask pymysql click
- conda install --yes -q -c conda-forge lxml pyqt
- conda install --yes -q -c conda-forge pyproj shapely
- conda install --yes -q -c conda-forge obspy
- conda install --yes -q -c conda-forge flask-admin markdown codecov logbook
- pip install multiprocessing_logging
- pip install msnoise
- ls -la
install:
- python setup.py bdist_wheel
- python setup.py install
- cd
script:
- mkdir empty
- cd empty
- msnoise db init --tech 1
- msnoise config set plugins=msnoise_tomo
- msnoise p tomo install
- msnoise p tomo info
- cd $TRAVIS_BUILD_DIR
deploy:
provider: bintray
file: "bintray.json"
user: "thomaslecocq"
key: "$BINTRAY_API"
skip_cleanup: true # to upload artifacts created during the build