-
Notifications
You must be signed in to change notification settings - Fork 66
/
.travis.yml
44 lines (37 loc) · 1.57 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
dist: xenial
sudo: required
language: python
python:
- '3.7'
before_script: null
install:
- wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh;
- bash miniconda.sh -b -p $HOME/miniconda
- export PATH="$HOME/miniconda/bin:$PATH"
- hash -r
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- conda create -q -n test-env python=$TRAVIS_PYTHON_VERSION pytest pytest-cov pyyaml
- source activate test-env
- conda install geopandas netcdf4
- pip install obspy
- pip install pytest-xdist pytest-cov coveralls
- pip install configparser
script:
- pytest -v --cov=mtpy --cov-report= tests --ignore=tests/SmartMT
after_failure:
- cat config.log
after_success:
- coveralls
deploy:
skip_existing: true
provider: pypi
user: zhang01ga
password:
secure: O63BKFd0KE5OLAiPbZVSHeiuA41PZvytoXQ/A7CLIRD0NZySWNrP2L1Ngr0fjI2ms155o2PLjvTJ/cx56MDEE/Z+Qc2BwWDYdGCWsyOKQpDwEcblXxT9lYbzAoYLRIJsjMYWx0kJls8H9fRgYTHa003g1u5f0JSYBSj4J0rz/yWQZLmHPQ7nyuio9SCbKB7noC12ItsDkXOYJvvLJxqFu8yLI9VmagKl+VPYpLc0wX+jGMS0EuukEnkknnjdmV+0CukDTkgE4CIXJCHW3PpcXF41/6srdzCZldq7HnYRuSIYjl1YV+p3XoriKinZ0Py/h0xdqaawabD4fYowwhyreL5GOjbt46rjgZCkZEZB2q+7C9nsWJ2XsdqhQc68372ir1KQBSIkmr7W/bfqpBi9CKECS+xytLFr6rMRdmRqR4zMLbJHzwFILfrZZQZMek7QWftFg3xuAiupOKkMTmJQ5kkIVNE+gC3yocIoHiPuxnO7SO9xXYUnSZMl7KXzYnDzk6fPGXjwm1HDhYXnPZoHG0WGDOYpqFx3s967GDdpBg9QqiLTDr5Dte3J/FQjQSr/aD/na5/QQmU36pklWf5yweRSbpI0WgMbS61ihBAB461YPp+wl9/FSclSayo9OIQuSmojKdcAPE3BtgVFk2N3UFZS+oW+Yn6N/LZXgo5uaUM=
on:
branch: master
after_deploy:
- pip search mtpy
- pip show mtpy