-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.travis.yml
34 lines (25 loc) · 1020 Bytes
/
.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
# Force an OSX build to utilise modern C++ compiler.
language: objective-c
# Run the install scripts...
install:
# Ensure brew is updated.
- brew update >/dev/null
# Install Qt5 using brew.
- brew install qt5 >/dev/null
# Configure GDAL 1.11.0 support.
- ln -s /usr/local/Cellar/gdal/1.11.0/include /usr/local/Cellar/gdal/1.11.0/include/gdal
- export QWM_GDAL_INC=/usr/local/Cellar/gdal/1.11.0/include/gdal
- export QWM_GDAL_LIB=/usr/local/Cellar/gdal/1.11.0/lib
# Record the compiler version.
- clang++ -v
# Find the qmake command and record the version.
- qmake_command=$(find /usr/local/Cellar/qt5 -name qmake -print | head -n 1)
- $qmake_command -v
# Run the build scripts...
script:
# Create the 'shadow build' folder.
- mkdir build
- cd build
# Build the library with GDAL extensions, the example application and the Qt Designer plugins.
- $qmake_command CONFIG+=with-gdal CONFIG+=with-example CONFIG+=with-plugins ../src
- make