This repository has been archived by the owner on Sep 29, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
89 lines (71 loc) · 2.19 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
# ------------------------------------------------------------------------------
# Travis CI scripts
# Copyright(c) pgRouting Contributors
#
# Main configuration
# ------------------------------------------------------------------------------
#choose precise or trusty
group: edge
3dist: trusty
#dist: precise
sudo: required
language: c
compiler:
- gcc
notifications:
email:
on_failure: [email protected]
branches:
only:
- master
- develop
env:
- POSTGRESQL_VERSION=9.1
- POSTGRESQL_VERSION=9.2
- POSTGRESQL_VERSION=9.3
- POSTGRESQL_VERSION=9.4
- POSTGRESQL_VERSION=9.5
# excecuted. So things have to be tested oe by one.
addons:
apt:
sources:
# For gcc >= 4.8
- ubuntu-toolchain-r-test
# For cmake >= 2.8.8 (for CMakePackageConfigHelpers)
- kubuntu-backports
- boost-latest
packages:
- g++-4.8
- cmake
- libboost-thread-dev
- libboost-graph-dev
- libcgal-dev
- postgresql-server-dev-all
- postgresql-common
install:
- sudo /etc/init.d/postgresql stop
- sudo /etc/init.d/postgresql stop
- sudo ./tools/travis/install-postgres9.5.sh $POSTGRESQL_VERSION postgres
before_script:
# Add our chosen PG version to the path
- export PATH=/usr/lib/postgresql/$POSTGRESQL_VERSION/bin:$PATH
# Stop whichever version of PG that travis started
- sudo /etc/init.d/postgresql stop
# Start the version of PG that we want to test
- sudo /etc/init.d/postgresql start $POSTGRESQL_VERSION
# Install pgtap and pg_prove
# pgtap has to be installed after postgres has started
- ./tools/travis/install_pgtap.sh $POSTGRESQL_VERSION
- sudo apt-get install -y libtap-parser-sourcehandler-pgtap-perl
# initialize databases
- createdb -U postgres ___pgr___test___
- createdb -U postgres pgr_test__db__test
- ./tools/travis/check-extensions.sh $POSTGRESQL_VERSION ___pgr___test___
script:
- ./tools/travis/pgrouting_build.sh $POSTGRESQL_VERSION $POSTGIS_VERSION
- ./tools/travis/pgrouting_test.sh $POSTGRESQL_VERSION postgres
- ./tools/testers/pg_prove_tests.sh postgres
after_script:
# nothing
#after_success:
#- ./tools/travis/pgrouting_deploy.sh $POSTGRESQL_VERSION $POSTGIS_VERSION