forked from pgRouting/pgrouting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
82 lines (58 loc) · 1.8 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
# ------------------------------------------------------------------------------
# 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=9.6 PG_USER=postgres
- os: linux
env: POSTGRESQL_VERSION=9.5 PG_USER=postgres
# 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-postgres.sh $POSTGRESQL_VERSION $PG_USER
- if [ "$TRAVIS_OS_NAME" == "linux" ]; then sudo ./tools/travis/install-doxygen.sh ; fi
before_script:
# Add our chosen PG version to the path
- 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
- ./tools/testers/pg_prove_tests.sh $PG_USER 5432 DEBUG
#after_script:
- ./tools/travis/pgrouting_test.sh $POSTGRESQL_VERSION $PG_USER -ignorenotice
#after_success:
# blank