forked from pgRouting/GSoC-pgRouting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
90 lines (65 loc) · 2.12 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
# ------------------------------------------------------------------------------
# Travis CI scripts
# Copyright(c) pgRouting Contributors
#
# Main configuration
# ------------------------------------------------------------------------------
#choose trusty
dist: trusty
sudo: required
language: cpp
compiler:
- gcc
env: POSTGRESQL_VERSION=9.6 PG_USER=postgres
matrix:
include:
- os: linux
env: POSTGRESQL_VERSION=10 PG_USER=postgres DOCUMENTATION=OFF
- os: linux
env: POSTGRESQL_VERSION=9.6 PG_USER=postgres DOCUMENTATION=OFF
- os: linux
env: POSTGRESQL_VERSION=9.5 PG_USER=postgres DOCUMENTATION=OFF
- os: linux
env: POSTGRESQL_VERSION=9.4 PG_USER=postgres DOCUMENTATION=OFF
- os: linux
env: POSTGRESQL_VERSION=9.3 PG_USER=postgres DOCUMENTATION=OFF
- os: linux
env: POSTGRESQL_VERSION=9.6 PG_USER=postgres DOCUMENTATION=ON
# executed. So things have to be tested oe by one.
addons:
apt:
sources:
- ubuntu-toolchain-r-test
# For cmake
- kubuntu-backports
- boost-latest
packages:
- cmake
- libboost-thread-dev
- libboost-graph-dev
- libcgal-dev
- python-sphinx
- graphviz
- texlive
- texlive-font-utils
- texlive-latex-extra
- ghostscript
install:
- pip install sphinx
- sudo ./tools/travis/install-doxygen.sh
- sudo ./tools/travis/install-postgres.sh $POSTGRESQL_VERSION $PG_USER
before_script:
- psql -U postgres -c "create extension postgis"
- export PATH=/usr/lib/postgresql/$POSTGRESQL_VERSION/bin:$PATH
# initialize databases
- createdb -U $PG_USER ___pgr___test___
- createdb -U $PG_USER pgr_test__db__test
- ./tools/travis/check-extensions.sh $POSTGRESQL_VERSION ___pgr___test___
script:
- ./tools/travis/pgrouting_build.sh $POSTGRESQL_VERSION $POSTGIS_VERSION
# tests as part of script so if a test fails the build fails
- if [ "$DOCUMENTATION" == "OFF" ]; then ./tools/testers/pg_prove_tests.sh $PG_USER 5432 DEBUG ; fi
#after_script:
- ./tools/travis/pgrouting_test.sh $POSTGRESQL_VERSION $PG_USER
#after_success:
# blank