forked from osm2pgsql-dev/osm2pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
60 lines (60 loc) · 1.29 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
language: cpp
sudo: false
addons:
apt:
sources:
- boost-latest
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- libtool
- libexpat1-dev
- libgeos-dev
- libgeos++-dev
- libpq-dev
- libbz2-dev
- libproj-dev
- lua5.2
- liblua5.2-dev
- libboost1.55-dev
- libboost-system1.55-dev
- libboost-filesystem1.55-dev
- libboost-thread1.55-dev
matrix:
include:
- os: linux
compiler: clang
env: BUILDCXXFLAGS='-Werror -pedantic -Wall -std=c++11'
- os: linux
compiler: gcc
env: BUILDCXXFLAGS='-Werror -pedantic -Wall -std=c++11'
- os: osx
compiler: clang
env: BUILDCXXFLAGS='-pedantic -Wall -std=c++11'
before_install:
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
brew install lua;
fi
# update versions
install:
- if [[ $CC == 'gcc' ]]; then
export CC=gcc-4.8;
fi
- if [[ $CXX == 'g++' ]]; then
export CXX=g++-4.8;
fi
before_script:
- export CXXFLAGS="-Werror"
- $CXX --version
- xml2-config --version
- geos-config --version
- proj | head -n1
- lua -v
script:
- ./autogen.sh
- ./configure
- make -j2 check TESTS='' CXXFLAGS="$BUILDCXXFLAGS"
after_failure:
- cat config.log
# rerun make, but verbosely
- make check TESTS='' V=1 CXXFLAGS="$BUILDCXXFLAGS"