forked from postgis/postgis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
72 lines (62 loc) · 2.87 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
env:
matrix:
- CFLAGS="-g -Og" MATRIX_EVAL="touch check-no-trailing-blanks"
- CFLAGS="-g -O2 -fstack-protector -Wformat -Werror=format-security" LDFLAGS="-Wl,-Bsymbolic-functions -Wl,-z,relro"
- CFLAGS="-g -O3 -mtune=generic -fno-omit-frame-pointer -Werror -Wall"
- CFLAGS="-g -O0 --coverage -fprofile-arcs -ftest-coverage" LDFLAGS="--coverage -fprofile-arcs -ftest-coverage" CONFIGURE_FLAGS="--enable-debug"
addons:
postgresql: "9.6"
apt:
packages:
- eatmydata
before_install:
- eval "${MATRIX_EVAL}"
- sudo sh -c "echo /usr/lib/libeatmydata/libeatmydata.so >> /etc/ld.so.preload"
- curl -sSfL https://github.com/mapbox/logbt/archive/v2.0.3.tar.gz | sudo tar --gunzip --extract --strip-components=1 --exclude="*md" --exclude="test*" --directory=/usr/local
- curl -sSfL https://raw.githubusercontent.com/mapbox/logbt/30c554dd37b6c96c23fc424f75910fc6d6696f00/bin/logbt | sudo tee /usr/local/bin/logbt > /dev/null
- sudo logbt --setup
- sudo service postgresql stop 9.6
- sudo chown -hRL --from=postgres travis:travis /etc /var /tmp
- sudo usermod -u 1000 postgres
- sudo adduser travis ssl-cert
- sudo service postgresql start 9.6
- sudo add-apt-repository --yes ppa:ubuntugis/ppa
- sudo add-apt-repository --yes ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update -qq
- mkdir -p /home/travis/deb && touch /home/travis/deb/__ && sudo cp -n /home/travis/deb/* /var/cache/apt/archives || true
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests libsfcgal1 libsfcgal-dev postgresql-server-dev-9.6 libxml2-utils libcunit1-dev xsltproc docbook-xsl docbook-mathml dblatex libgeos-dev libjson0-dev libprotobuf-c0-dev libgdal-dev gdb libc6-dbg
- sudo sh -c "echo deb http://archive.ubuntu.com/ubuntu/ artful main restricted universe multiverse >> /etc/apt/sources.list"
- sudo apt-get update -qq
- sudo apt-get install -y --allow-unauthenticated --no-install-recommends --no-install-suggests binutils libproj-dev
- cp -n /var/cache/apt/archives/* /home/travis/deb || true
- ls -la /home/travis/deb/
- sudo ldconfig
- ./autogen.sh
after_failure:
- sudo head -n1000 /var/log/postgresql/postgresql-9.6-main.log
after_success:
- bash .github/codecov.bash
language: c
compiler: gcc
dist: trusty
cache:
ccache: true
directories:
- /home/travis/deb
script:
- ./configure CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" $CONFIGURE_FLAGS || cat config.log
- make -j
- chmod 755 /home/travis
- logbt -- make check "RUNTESTFLAGS=--verbose"
- logbt -- make check "RUNTESTFLAGS='--dumprestore --verbose'"
- sudo make install
- logbt -- make installcheck "RUNTESTFLAGS=--verbose"
- logbt -- make installcheck "RUNTESTFLAGS=--dumprestore --verbose"
notifications:
email: false
irc:
channels:
- "irc.freenode.org#postgis-activity"
on_success: change
on_failure: always
use_notice: false