forked from MobilityDB/MobilityDB
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
35 lines (26 loc) · 1.15 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
env:
- PGMAJOR=10 COVERAGE=0
- PGMAJOR=11 COVERAGE=0
- PGMAJOR=12 COVERAGE=0
- PGMAJOR=13 COVERAGE=0
- PGMAJOR=13 COVERAGE=1
language: c
dist: xenial
compiler:
- gcc
before_install:
- echo 'deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main' | sudo tee /etc/apt/sources.list.d/pgdg.list
- curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
- sudo apt-get update
- sudo apt-get install -y postgresql-$PGMAJOR postgis liblwgeom-dev libpq-dev libpqtypes-dev postgresql-server-dev-$PGMAJOR libproj-dev postgresql-$PGMAJOR-postgis-2.5 postgresql-$PGMAJOR-postgis-2.5-scripts libjson-c-dev libgsl-dev
- pip install --user cpp-coveralls
before_script:
- mkdir build
- cd build
- cmake -DWITH_COVERAGE=$COVERAGE ..
script:
- export PATH="/usr/lib/postgresql/$PGMAJOR/bin:$PATH"
- make && make test
after_failure: ../test/scripts/print_fail.sh
after_success: |
[ "$COVERAGE" == "1" ] && coveralls --exclude src/debug --exclude point/src/debug --exclude include --exclude point/include --exclude src/sql --exclude point/src/sql --exclude doc --exclude test --exclude point/test --gcov-options '\-lp' -r .. -b .