forked from GeoscienceAustralia/PyRate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
89 lines (72 loc) · 2.14 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
language: python
dist: xenial
env:
global:
- PIP_WHEEL_DIR=$HOME/.cache/pip/wheels
- PIP_FIND_LINKS=file://$HOME/.cache/pip/wheels
- GDALINST=$HOME/gdalinstall
- GDALBUILD=$HOME/gdalbuild
- PROJINST=$HOME/gdalinstall
- PROJBUILD=$HOME/projbuild
# nci version is GDALVERSION="3.0.2" and python3.7
jobs:
include:
- python: "3.6"
env: GDALVERSION="3.0.2" PROJVERSION="6.1.1"
- python: "3.7"
env: GDALVERSION="3.0.2" PROJVERSION="6.2.1"
- python: "3.7"
env: GDALVERSION="3.0.4" PROJVERSION="6.1.1"
- python: "3.8"
env: GDALVERSION="3.0.4" PROJVERSION="6.1.1"
addons:
apt:
packages:
- libhdf5-serial-dev
- libgdal-dev
- libatlas-dev
- libatlas-base-dev
- gfortran
- openmpi-bin
- libopenmpi-dev
before_install:
- python -m pip install -U pip
- python -m pip install wheel
- export PATH=$GDALINST/gdal-$GDALVERSION/bin:$PATH
- export LD_LIBRARY_PATH=$GDALINST/gdal-$GDALVERSION/lib:$LD_LIBRARY_PATH
- . ./scripts/travis_proj_install.sh
- travis_wait 20 . ./scripts/travis_gdal_install.sh
- export GDAL_DATA=$GDALINST/gdal-$GDALVERSION/share/gdal
- export PROJ_LIB=$GDALINST/gdal-$GDALVERSION/share/proj
install:
- sed -i '/^GDAL/d' requirements.txt
- pip install -r requirements.txt -r requirements-dev.txt -r requirements-test.txt
- pip install GDAL==$(gdal-config --version)
- python setup.py install
- rm -rf Py_Rate.egg-info # remove the local egg
- export PYTHONPATH=$PYRATEPATH:$PYTHONPATH
- chmod 444 tests/test_data/small_test/tif/geo_070709-070813_unw.tif # makes the file readonly, used in a test
script:
- pytest tests/ -m "slow"
- pytest --cov-config=.coveragerc --cov-report term-missing:skip-covered --cov=pyrate tests/ -m "not slow"
after_success:
- codecov
before_deploy:
- cd docs && make html
deploy:
provider: pages
skip_cleanup: true
keep_history: true
verbose: true
on:
branch: master
python: 3.8
github_token: $GITHUB_TOKEN2
local_dir: docs/_build/html
project_name: PyRate
email: [email protected]
name: InSAR Team
cache:
directories:
- $GDALINST
- ~/.cache/pip