forked from OSGeo/PROJ-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
36 lines (29 loc) · 1.53 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
# This is the config file for Travis-ci.org
sudo: required
# Avoid consuming our GitHub LFS quota
git:
lfs_skip_smudge: true
services:
- docker
before_install:
- sudo apt-get update
- sudo apt-get install cmake make zip unzip pyflakes3 wget
install:
- ./travis/check_new_grids.sh
- cd grid_tools
- pyflakes3 *.py
- wget https://github.com/OSGeo/proj-datumgrid/raw/master/north-america/ntv2_0.gsb
- docker run --rm -v /home:/home osgeo/gdal:alpine-normal-latest python3 $PWD/ntv2_to_gtiff.py --copyright "Derived from work by Natural Resources Canada. Open Government Licence - Canada" --source-crs EPSG:4267 --target-crs EPSG:4269 $PWD/ntv2_0.gsb $PWD/ca_nrc_ntv2_0.tif
- docker run --rm -v /home:/home osgeo/gdal:alpine-normal-latest python3 $PWD/check_gtiff_grid.py $PWD/ca_nrc_ntv2_0.tif
- wget https://github.com/OSGeo/proj-datumgrid/raw/master/egm96_15.gtx
- docker run --rm -v /home:/home osgeo/gdal:alpine-normal-latest python3 $PWD/vertoffset_grid_to_gtiff.py --type GEOGRAPHIC_TO_VERTICAL --source-crs EPSG:4326 --target-crs EPSG:5773 --copyright "Public Domain. Derived from work from NGA" $PWD/egm96_15.gtx $PWD/us_nga_egm96_15.tif
- docker run --rm -v /home:/home osgeo/gdal:alpine-normal-latest python3 $PWD/check_gtiff_grid.py $PWD/us_nga_egm96_15.tif
- cd ..
# Travis build directory includes /build/, which is a pattern we exclude
# in our 'make dist' target...
- (cd ..; mv PROJ-data /tmp)
- (cd /tmp/PROJ-data && ./travis/test.sh)
script:
- echo "done"
after_success:
- echo "done"