-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.travis.yml
77 lines (70 loc) · 2.23 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
# This is the config file for building GDAL and running its autotest suite
# with Travis-ci.org on a Mac-OSX machine
language: objective-c
osx_image: xcode8
# We use clang, --without-libtool and --with-debug for faster build
compiler:
- clang
# Could probably drop the osx check.
before_install:
- brew update
- brew uninstall gdal
- brew install sqlite3
install:
# build proj
- brew list --versions
- curl http://download.osgeo.org/proj/proj-4.9.3.tar.gz > proj-4.9.3.tar.gz
- tar xvzf proj-4.9.3.tar.gz
- cd proj-4.9.3/nad
- curl http://download.osgeo.org/proj/proj-datumgrid-1.5.tar.gz > proj-datumgrid-1.5.tar.gz
- tar xvzf proj-datumgrid-1.5.tar.gz
- cd ..
- ./configure --prefix=$HOME/install-proj
- make -j3
- make install
- cd ..
# build GDAL
- cd gdal
- ./configure --prefix=$HOME/install-gdal --enable-debug --with-jpeg12 --with-python --with-geotiff=internal --with-png=internal --with-static-proj4=$HOME/install-proj --with-sqlite3=/usr/local/opt/sqlite
- make USER_DEFS="-Wextra -Werror" -j3
- cd apps
- make USER_DEFS="-Wextra -Werror" test_ogrsf
- echo "Show which shared libs got used:"
- otool -L .libs/ogrinfo
- cd ..
- make install
- export PATH=$HOME/install-gdal/bin:$PWD/apps/.libs:$PATH
- export DYLD_LIBRARY_PATH=$HOME/install-gdal/lib
- export GDAL_DATA=$HOME/install-gdal/share/gdal
- export PYTHONPATH=$PWD/swig/python/build/lib.macosx-10.11-x86_64-2.7
- cd ../autotest/cpp
- echo $PATH
# - sudo rm -rf /usr/local/Cellar/gdal/1.10.1_1/*
# - sudo ln -s /usr/bin /usr/local/Cellar/gdal/1.10.1_1
# - sudo ln -s /usr/lib /usr/local/Cellar/gdal/1.10.1_1
# - sudo ln -s /usr/include /usr/local/Cellar/gdal/1.10.1_1
# - sudo mkdir /usr/local/Cellar/gdal/1.10.1_1/share
# - sudo ln -s /usr/share/gdal /usr/local/Cellar/gdal/1.10.1_1/share
- gdal-config --version
- gdal-config --cflags
- gdal-config --libs
- make -j3
- cd ../../gdal
script:
# CPP unit tests
- cd ../autotest
- cd cpp
- GDAL_SKIP=JP2ECW make quick_test
- cd ..
# Run all the Python autotests
# - make -j test
- python run_all.py
notifications:
email:
recipients:
irc:
channels:
- "irc.freenode.org#gdal"
use_notice: true
on_success: change