forked from osm2pgsql-dev/osm2pgsql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
123 lines (107 loc) · 4.26 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
language: generic
sudo: required
git:
depth: 1
services:
- postgresql
addons_shortcuts:
addons_clang38_pg92: &clang38_pg92
postgresql: '9.2'
apt:
sources: ['ubuntu-toolchain-r-test', 'llvm-toolchain-trusty-3.8']
packages: ['clang-3.8', 'postgresql-9.2-postgis-2.3',
'python-psycopg2', 'libexpat1-dev', 'libpq-dev', 'libbz2-dev', 'libproj-dev',
'lua5.2', 'liblua5.2-dev', 'libluajit-5.1-dev',
'libboost1.55-dev', 'libboost-system1.55-dev', 'libboost-filesystem1.55-dev']
addons_clang7_pg96: &clang7_pg96
postgresql: '9.6'
apt:
update: true
sources:
- sourceline: 'deb http://apt.llvm.org/trusty/ llvm-toolchain-trusty-7 main'
key_url: https://apt.llvm.org/llvm-snapshot.gpg.key
- ubuntu-toolchain-r-test
packages: ['clang-7','postgresql-9.6-postgis-2.3',
'python-psycopg2', 'libexpat1-dev', 'libpq-dev', 'libbz2-dev', 'libproj-dev',
'lua5.2', 'liblua5.2-dev', 'libluajit-5.1-dev',
'libboost1.55-dev', 'libboost-system1.55-dev', 'libboost-filesystem1.55-dev']
addons_gcc48_pg96: &gcc48_pg96
postgresql: '9.6'
apt:
sources: ["ubuntu-toolchain-r-test"]
packages: ['g++-4.8','postgresql-9.6-postgis-2.3',
'python-psycopg2', 'libexpat1-dev', 'libpq-dev', 'libbz2-dev', 'libproj-dev',
'lua5.2', 'liblua5.2-dev', 'libluajit-5.1-dev',
'libboost1.55-dev', 'libboost-system1.55-dev', 'libboost-filesystem1.55-dev']
addons_gcc8_pg96: &gcc8_pg96
postgresql: '9.6'
apt:
sources: ["ubuntu-toolchain-r-test"]
packages: ['g++-8','postgresql-9.6-postgis-2.3',
'python-psycopg2', 'libexpat1-dev', 'libpq-dev', 'libbz2-dev', 'libproj-dev',
'lua5.2', 'liblua5.2-dev', 'libluajit-5.1-dev',
'libboost1.55-dev', 'libboost-system1.55-dev', 'libboost-filesystem1.55-dev']
# env: T="...." // please set an unique test id (T="..")
matrix:
include:
# ---- Linux + CLANG ---------------------------
- os: linux
compiler: "clang-3.8"
env: T="clang38_pg92_dbtest" RUNTEST="#Dbtest" LUAJIT_OPTION="OFF"
CXXFLAGS="-pedantic -Werror"
CC=clang-3.8 CXX=clang++-3.8
addons: *clang38_pg92
- os: linux
compiler: "clang-7"
env: T="clang7_pg96_dbtest_luajit" RUNTEST="#Dbtest" LUAJIT_OPTION="ON"
CXXFLAGS="-pedantic -Werror"
CC=clang-7 CXX=clang++-7
addons: *clang7_pg96
# ---- OSX + CLANG ---------------------------
- os: osx
compiler: clang
env: T="osx_clang_NoDB" RUNTEST="-L NoDB" LUAJIT_OPTION="OFF"
CXXFLAGS="-pedantic -Werror"
before_install:
- brew install lua;
before_script:
- xml2-config --version
- proj | head -n1
- lua -v
# ---- Linux + GCC ---------------------------
- os: linux
compiler: "gcc-4.8"
env: T="gcc48_pg96_dbtest" RUNTEST="#Dbtest" LUAJIT_OPTION="OFF"
CXXFLAGS="-pedantic -Werror"
CC=gcc-4.8 CXX=g++-4.8
addons: *gcc48_pg96
- os: linux
compiler: gcc-8
env: T="gcc8_pg96_dbtest_luajit" RUNTEST="#Dbtest" LUAJIT_OPTION="ON"
CXXFLAGS="-pedantic -Werror"
CC=gcc-8 CXX=g++-8
addons: *gcc8_pg96
before_install:
- sudo mkdir -p /extra/pg/tablespacetest # for the database test
- sudo chown postgres:postgres /extra/pg/tablespacetest
- dpkg -l | grep -E 'lua|proj|xml|bz2|postgis|zlib|boost|expat' # checking available versions
before_script:
- psql -U postgres -c "SELECT version()"
- psql -U postgres -c "CREATE TABLESPACE tablespacetest LOCATION '/extra/pg/tablespacetest'"
- psql -U postgres -c "CREATE EXTENSION postgis"
- psql -U postgres -c "CREATE EXTENSION hstore"
- psql -U postgres -c "SELECT PostGIS_Full_Version()"
- $CXX --version
- xml2-config --version
- proj | head -n1
- lua -v
script:
- mkdir build && cd build
- cmake .. -DBUILD_TESTS=ON -DCMAKE_BUILD_TYPE=Debug -DWITH_LUAJIT=$LUAJIT_OPTION
- make -j2
- echo "Running tests ... "
- if [[ $RUNTEST ]]; then ctest -VV $RUNTEST; fi
after_failure:
- # rerun make, but verbosely
make VERBOSE=1
# end of .travis