forked from maxmind/mod_maxminddb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (35 loc) · 1.03 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
language: perl
perl:
- "5.18"
before_install:
- cpanm Carton
- git submodule update --init --recursive
- git clone --recursive git://github.com/maxmind/libmaxminddb
- cd libmaxminddb
- ./bootstrap
- ./configure
- make
- sudo make install
- sudo ldconfig
- cd ..
- sudo apt-get update
- sudo apt-get install --assume-yes apache2-mpm-prefork apache2.2-bin apache2.2-common apache2-prefork-dev apache2-utils
- git clone git://github.com/ttkzw/mod_remoteip-httpd22
- cd mod_remoteip-httpd22
- sudo apxs2 -i -c -n mod_remoteip.so mod_remoteip.c
- cd ..
- sudo apxs2 -i -a -lmaxminddb -Wc,"-std=gnu99 -Wall -Wextra -Werror -Wno-missing-field-initializers" -c src/mod_maxminddb.c
install:
- cpanm --installdeps --notest .
script:
- perl Makefile.PL -configure -httpd_conf t/setup/apache2.conf -src_dir /usr/lib/apache2/modules
- ./t/TEST -v
after_failure:
- sudo apache2ctl -M
- cat t/logs/error_log
notifications:
email:
recipients:
- dev@maxmind.com
on_success: change
on_failure: always