forked from owasp-modsecurity/ModSecurity-apache
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
64 lines (56 loc) · 1.33 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
sudo: required
dist: trusty
os: linux
language: c
compiler:
- gcc
addons:
apt:
packages:
- libyajl-dev
- libgeoip-dev
- liblmdb-dev
- apache2
- apache2-bin
- apache2-data
- apache2-dbg
- apache2-dev
- apache2-mpm-prefork
- libwww-perl
env:
- VER_APACHE=2.2.34
- VER_APACHE=2.4.29
before_script:
- curl -L https://cpanmin.us | sudo perl - --sudo App::cpanminus
- cd ..
- curl https://www.apache.org/dist/httpd/httpd-${VER_APACHE}.tar.gz > httpd-${VER_APACHE}.tar.gz
- tar xvzf httpd-${VER_APACHE}.tar.gz
- cd httpd-${VER_APACHE}
- ./configure --with-mpm=worker
- make -j4
- sudo make install
- cd -
- sudo cpanm --quiet --notest --skip-satisfied CGI::Cookie
- sudo cpanm --quiet --notest --skip-satisfied Apache::TestRun
- git clone https://github.com/SpiderLabs/ModSecurity.git
- cd ModSecurity
- git checkout v3/master
- git submodule init
- git submodule update
- ./build.sh
- ./configure --without-lmdb
- make
- sudo make install
- pwd
- cd -
- cd ModSecurity-apache
- ./autogen.sh
- export PATH="/usr/local/apache2/bin/:$PATH"
- ls -la /usr/local/apache2/bin/
- ls -la /usr/local/apache2/include/
- ./configure --with-apxs=/usr/local/apache2/bin/apxs
- make
- sudo make install
- pwd
script:
- t/TEST -apxs /usr/local/apache2/bin/apxs