forked from osmcode/osm-area-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
71 lines (64 loc) · 2.05 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
#-----------------------------------------------------------------------------
#
# Configuration for continuous integration service at travis-ci.org
#
#-----------------------------------------------------------------------------
language: cpp
sudo: false
matrix:
include:
- os: linux
compiler: clang
env: BUILD_TYPE=Dev
- os: linux
compiler: clang
env: BUILD_TYPE=Release
- os: linux
compiler: gcc
env: BUILD_TYPE=Dev
- os: linux
compiler: gcc
env: BUILD_TYPE=Release
- os: osx
# https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions
osx_image: xcode7.3 # upgrades clang from 6 -> 7
compiler: clang
env: BUILD_TYPE=Dev
- os: osx
# https://docs.travis-ci.com/user/languages/objective-c/#Supported-OS-X-iOS-SDK-versions
osx_image: xcode7.3 # upgrades clang from 6 -> 7
compiler: clang
env: BUILD_TYPE=Release
# http://docs.travis-ci.com/user/apt/
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- gcc-4.8
- libboost1.55-dev
- libgdal-dev
- libgeos++-dev
- libproj-dev
- libsqlite3-dev
install:
- git clone --quiet --depth 1 https://github.com/osmcode/libosmium.git ../libosmium
script:
- mkdir build
- cd build
# GCC ignores the pragmas in the code that disable the "return-type" warning selectively, so use this workaround
- if [ "${CXX}" = 'g++' ]; then
CXX=g++-4.8;
CC=gcc-4.8;
WORKAROUND="-DCMAKE_CXX_FLAGS=-Wno-return-type";
else
WORKAROUND="";
fi
- echo "travis_fold:start:cmake\nRunning cmake..."
- cmake -LA -DCMAKE_BUILD_TYPE=${BUILD_TYPE} ${WORKAROUND} ..
- echo "travis_fold:end:cmake"
- echo "travis_fold:start:make\nRunning make..."
- make VERBOSE=1
- echo "travis_fold:end:make"