forked from MapServer/mapcache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (56 loc) · 1.93 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
branches:
except:
- /^(cherry-pick-)?backport-\d+-to-/
matrix:
fast_finish: true
include:
- os: linux
dist: focal
language: c
sudo: required
env:
- DISTRO=focal
- BUILD_TYPE=maximum
- os: linux
dist: focal
language: c
sudo: required
env:
- DISTRO=focal
- BUILD_TYPE=minimum
# - os: linux
# dist: bionic
# language: c
# sudo: required
# env:
# - DISTRO=bionic
# - BUILD_TYPE=maximum
language: c
before_install:
- if test "$DISTRO" = "bionic"; then sudo mv /etc/apt/sources.list.d/pgdg* /tmp; fi
- sudo apt-get purge -y libgdal* libgeos* libspatialite*
- sudo add-apt-repository -y ppa:ubuntugis/ubuntugis-unstable
- sudo apt-get update
- sudo apt-get install cmake libspatialite-dev libfcgi-dev libproj-dev libgeos-dev libgdal-dev libtiff-dev libgeotiff-dev apache2-dev libpcre3-dev libsqlite3-dev libdb-dev
# For testing
- sudo apt-get install libxml2-utils apache2 gdal-bin
script:
- mkdir build
- cd build
- if test "$BUILD_TYPE" = "maximum"; then cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DWITH_TIFF=ON -DWITH_GEOTIFF=ON -DWITH_TIFF_WRITE_SUPPORT=ON -DWITH_PCRE=ON -DWITH_SQLITE=ON -DWITH_BERKELEY_DB=ON; else cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DWITH_TIFF=OFF -DWITH_GEOTIFF=OFF -DWITH_TIFF_WRITE_SUPPORT=OFF -DWITH_PCRE=OFF -DWITH_SQLITE=OFF -DWITH_BERKELEY_DB=OFF -DWITH_GDAL=OFF -DWITH_GEOS=OFF -DWITH_FCGI=OFF -DWITH_CGI=OFF -DWITH_APACHE=OFF -DWITH_OGR=OFF -DWITH_MAPSERVER=OFF -DWITH_MAPCACHE_DETAIL=OFF; fi
- make -j3
- sudo make install
# Only test with Apache 2.4
- if [ "$BUILD_TYPE" = "maximum" ]; then
cd ../tests;
sh ./travis_setup.sh;
sh ./run_tests.sh;
sudo systemctl -l status apache2.service;
cat /tmp/mc/mapcache.xml;
ls -lah /tmp/mc/mapcache.xml;
fi
notifications:
irc:
channels:
- "irc.libera.chat#mapcache"
use_notice: true