Skip to content

Commit 54aaa6a

Browse files
committed
travis-ci: minor improvements.
1 parent 20d0d98 commit 54aaa6a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.travis.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ compiler:
1111
env:
1212
global:
1313
- NGINX_VERSION=1.9.15
14+
- JOBS=3
15+
- TEST_NGINX_SLEEP=0.006
1416
matrix:
1517
- LUA=libluajit-5.1-dev LUA_DEV=libluajit-5.1-dev LUA_INCLUDE_DIR=/usr/include/luajit-2.0 LUA_CMODULE_DIR=/lib LUALIB=-lluajit-5.1
1618

@@ -23,12 +25,11 @@ install:
2325
- git clone https://github.com/openresty/lua-cjson.git
2426

2527
script:
26-
- cd lua-cjson && make && sudo make install && cd ..
28+
- cd lua-cjson && make -j$JOBS && sudo make install && cd ..
2729
- tar xzf nginx-${NGINX_VERSION}.tar.gz
2830
- cd nginx-${NGINX_VERSION}/
2931
- ./configure --with-debug --with-cc-opt="-DDEBUG_MALLOC" --with-ipv6 --add-module=../lua-nginx-module > build.log 2>&1 || (cat build.log && exit 1)
30-
- make -j2 > build.log 2>&1 || (cat build.log && exit 1)
32+
- make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
3133
- export PATH=$PATH:`pwd`/objs
3234
- cd ..
33-
- make
34-
- prove -lv t
35+
- prove -r t

0 commit comments

Comments
 (0)