forked from cn27001/lua-resty-waf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
23 lines (23 loc) · 898 Bytes
/
.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
language: perl
cache:
- apt
- ccache
notifications:
irc: "chat.freenode.net#lua-resty-waf"
webhooks: https://www.cryptobells.com/endpoint
env:
- V_OPENRESTY=1.9.7.4 V_PCRE=8.38 TEST=unit
- V_OPENRESTY=1.9.7.4 V_PCRE=8.38 TEST=acceptance
install:
- cpanm -v --notest Test::Nginx
before_script:
- sudo apt-get update -q
- sudo apt-get install libssl-dev lua5.1 -y
- wget https://openresty.org/download/openresty-$V_OPENRESTY.tar.gz
- wget ftp://ftp.csx.cam.ac.uk/pub/software/programming/pcre/pcre-$V_PCRE.tar.bz2
- tar xjf pcre-$V_PCRE.tar.bz2
- tar xzf openresty-$V_OPENRESTY.tar.gz
- cd openresty-$V_OPENRESTY && ./configure --with-pcre=../pcre-$V_PCRE --with-pcre-jit --with-pcre-opt=-g --with-debug -j2 && make -j2 && sudo make install && cd ..
script:
- PATH=/usr/local/openresty/nginx/sbin:$PATH prove -r t/$TEST
- ./tools/lua-releng -L