-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy path.travis.yml
58 lines (49 loc) · 1.54 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
sudo: required
dist: trusty
os: linux
notifications:
email: false
language: cpp
compiler:
- gcc
- clang
cache:
cpan: true
apt: true
ccache: true
env:
global:
- LUAJIT_LIB=/usr/lib64/libluajit-5.1.so
- LUAJIT_INC=/usr/include/luajit-2.0
matrix:
- NGINX_VERSION=1.14.0
- NGINX_VERSION=1.15.7
before_install:
- sudo apt-get install -qq -y cpanminus libluajit-5.1-dev libgd-dev
- sudo apt-get install libboost-all-dev
- sudo cpanm -v --notest Test::Nginx > build.log 2>&1 || (cat build.log && exit 1)
install:
- wget http://nginx.org/download/nginx-${NGINX_VERSION}.tar.gz && tar -xzf nginx-${NGINX_VERSION}.tar.gz
#- wget -O boost_1_56_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.56.0/boost_1_56_0.tar.gz/download && tar -xzf boost_1_56_0.tar.gz
script:
#- cd boost_1_56_0
#- ./bootstrap.sh --without-libraries=filesystem,graph,iostreams,locale,python,regex,serialization,wave,test,mpi,program_options
#- sudo ./b2 link=static -j2 install > build.log 2>&1 || (cat build.log && exit 1)
#- cd ..
- cd nginx-${NGINX_VERSION}/
- patch -b ./auto/make ../patch/auto/make.patch
- ./configure
--with-stream
--add-module=../ngxpp
--add-module=../http/echo
--add-module=../http/filter
--add-module=../http/test
--add-module=../http/variables
--add-module=../stream/discard
--add-module=../stream/time
> build.log 2>&1 || (cat build.log && exit 1)
- make -j2 > build.log 2>&1 || (cat build.log && exit 1)
- ./objs/nginx -V
- export PATH=$PATH:`pwd`/objs
- cd ..
- prove -r t