-
Notifications
You must be signed in to change notification settings - Fork 22
/
.travis.yml
55 lines (46 loc) · 1.95 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
dist: xenial
sudo: required # use VM instead of docker
language: python
cache: pip
python:
#deprecated - '2.7'
#deprecated - '3.5'
- '3.6'
- '3.7'
before_install:
- sudo apt-get install libhdf5-dev
- sudo apt-get install libmpich-dev
- sudo apt-get install libproj-dev proj-bin
- sudo apt-get install libgeos-dev
- sudo apt-get install libnetcdf-dev
# Log package versions
- dpkg -s libhdf5-dev
- dpkg -s libmpich-dev
- dpkg -s libproj-dev proj-bin
- dpkg -s libgeos-dev
- dpkg -s libnetcdf-dev
- pip install -U pip
- pip install Cython --install-option="--no-cython-compile"
- pip install pytest-cov
- pip install coveralls
- pip install pip-tools
- pip-compile --upgrade
install:
- pip install -r requirements.txt
- pip install -r tests/requirements.txt
- pip list
script:
# Report detailed HDF5 version information, which has potential impact on netCDF4 and pyasdf
- python -c 'import h5py; print("h5py MPI:", h5py.get_config().mpi); print("h5py API version:", h5py.version.api_version); print(h5py.version.info)'
- pytest -v --cov=seismic --cov-report= tests
after_success: coveralls
notifications:
email:
on_success: never
on_failure: change
#after_script: cd ~
#deploy:
# provider: pypi
# user: lqdev
# password:
# secure: Cywt4032m6kv2SH7j6WMe4dru4OUfKClBIlsfrAgosQkVCFBDUhcIUsez/wuN7kRxgYbcNQaEmwqsNWq+43UiXoOhJJaYPDJKkqQ1MQccgjaRLHdsY39Xt9Zeb6Yz67zyMfDgvY0T7oWNLBcoTPChPgUgpud5dcAJ0LxusQjOXWDqSaA9azDm19S1HVx6ataMdFQkYgAnZzx3BE5ja30EvzZveCb4/tRX2Fvi3i/jQfM47EQDuxvRcWZiHtiX+5WyZuqSMLZI9CS40DvpdhqWtYZ0VEa2ve0WwW2NPI0fhVrzq8dftmjJUhRI+JMbxZObZh0YS5wuzunmhSQbhlEX2vPWjhb1iige4bt7E9mDJfQ04F18q+QQG1dE5HP1U+/VvoAwX9OTZj9zH4Q5IGS5fpbXooKv3drP0ppfqmy+4HH0+bdMxZSnGp9NNh76EFirLWg4SkvX3jQeX9CKvG9ZxFcmI+9Aku135xplCj5Lfs2Q+e96wqe5nv2XUoHEumWe93hofzUBHKxHnz4zTKqQDUdH3hH9KmEaXllwtHUGD/JnkhjtzJlaqxnlESH+AAz8xMu5gbB/wTHE/jqsZ+7qcCvOCWd1sBhT+6nJzupD4sxSvOBAgpENKvnw27itLFCoOSpxF4AGAo2Uyd7VTRX1pcovw7x/0obVG9nwZqpiGs=