File tree Expand file tree Collapse file tree 3 files changed +56
-4
lines changed Expand file tree Collapse file tree 3 files changed +56
-4
lines changed Original file line number Diff line number Diff line change 1+ os : linux
2+ dist : trusty
3+
4+ sudo : required
5+
6+ addons :
7+ apt :
8+ packages :
9+ - axel
10+ - build-essential
11+ - cpanminus
12+ - libgd-dev
13+ - liblist-moreutils-perl
14+ - libncurses5-dev
15+ - libpcre3-dev
16+ - libreadline-dev
17+ - libssl-dev
18+ - libtest-base-perl
19+ - libtest-longstring-perl
20+ - libtext-diff-perl
21+ - liburi-perl
22+ - libwww-perl
23+ - perl
24+
25+ cache :
26+ directories :
27+ - download-cache
28+
29+ env :
30+ global :
31+ - JOBS=2
32+ - OPENRESTY_PREFIX=/usr/local/openresty
33+ - OPENRESTY_VER=1.11.2.3
34+
35+ install :
36+ - if [ ! -f download-cache/openresty-$OPENRESTY_VER.tar.gz ]; then
37+ wget -P download-cache https://openresty.org/download/openresty-$OPENRESTY_VER.tar.gz;
38+ fi
39+ - git clone https://github.com/openresty/test-nginx.git ../test-nginx
40+
41+ script :
42+ - tar xzf download-cache/openresty-$OPENRESTY_VER.tar.gz &&
43+ cd openresty-$OPENRESTY_VER
44+ - ./configure --prefix=$OPENRESTY_PREFIX -j$JOBS
45+ > build.log 2>&1 || (cat build.log && exit 1)
46+ - make -j$JOBS > build.log 2>&1 ||
47+ (cat build.log && exit 1)
48+ - sudo make install > build.log 2>&1 ||
49+ (cat build.log && exit 1)
50+ - cd ..
51+ - export PATH=$OPENRESTY_PREFIX/nginx/sbin:$PATH
52+ - make test jobs=$JOBS
Original file line number Diff line number Diff line change @@ -60,8 +60,8 @@ __DATA__
6060GET /t
6161--- response_body
6262server2: 14743
63- server3: 8182
6463server1: 77075
64+ server3: 8182
6565points number: 2080
6666--- no_error_log
6767[error]
Original file line number Diff line number Diff line change 5353gcd: 2
5454id: server1
5555id: server1
56+ id: server1
5657id: server2
5758id: server1
5859id: server2
@@ -64,7 +65,6 @@ id: server2
6465id: server1
6566id: server2
6667id: server3
67- id: server1
6868--- no_error_log
6969[error]
7070
@@ -104,8 +104,8 @@ id: server1
104104--- request
105105GET /t
106106--- response_body
107- server2: 33334
107+ server1: 50001
108108server3: 16666
109- server1: 50000
109+ server2: 33333
110110--- no_error_log
111111[error]
You can’t perform that action at this time.
0 commit comments