1sudo: required 2dist: trusty 3 4os: linux 5 6language: c 7 8compiler: 9 - gcc 10 - clang 11 12addons: 13 apt: 14 packages: [ axel, ragel, cpanminus, libtest-base-perl, libtext-diff-perl, liburi-perl, libwww-perl, libtest-longstring-perl, liblist-moreutils-perl ] 15 16cache: 17 apt: true 18 19env: 20 global: 21 - LUAJIT_PREFIX=/opt/luajit21 22 - LUAJIT_LIB=$LUAJIT_PREFIX/lib 23 - LD_LIBRARY_PATH=$LUAJIT_LIB:$LD_LIBRARY_PATH 24 - LUAJIT_INC=$LUAJIT_PREFIX/include/luajit-2.1 25 - LUA_INCLUDE_DIR=$LUAJIT_INC 26 - LUA_CMODULE_DIR=/lib 27 - JOBS=3 28 - NGX_BUILD_JOBS=$JOBS 29 - TEST_NGINX_SLEEP=0.006 30 matrix: 31 - NGINX_VERSION=1.9.15 32 - NGINX_VERSION=1.11.2 33 34install: 35 - git clone https://github.com/openresty/nginx-devel-utils.git 36 - git clone https://github.com/openresty/openresty.git ../openresty 37 - git clone https://github.com/openresty/no-pool-nginx.git ../no-pool-nginx 38 - git clone https://github.com/simpl/ngx_devel_kit.git ../ndk-nginx-module 39 - git clone https://github.com/openresty/test-nginx.git 40 - git clone -b v2.1-agentzh https://github.com/openresty/luajit2.git 41 - git clone https://github.com/openresty/lua-nginx-module.git ../lua-nginx-module 42 - git clone https://github.com/openresty/echo-nginx-module.git ../echo-nginx-module 43 44script: 45 - cd luajit2 46 - make -j$JOBS CCDEBUG=-g Q= PREFIX=$LUAJIT_PREFIX CC=$CC XCFLAGS='-DLUA_USE_APICHECK -DLUA_USE_ASSERT' > build.log 2>&1 || (cat build.log && exit 1) 47 - sudo make install PREFIX=$LUAJIT_PREFIX > build.log 2>&1 || (cat build.log && exit 1) 48 - cd ../test-nginx && sudo cpanm . && cd .. 49 - export PATH=$PWD/work/nginx/sbin:$PWD/nginx-devel-utils:$PATH 50 - export NGX_BUILD_CC=$CC 51 - sh util/build.sh $NGINX_VERSION > build.log 2>&1 || (cat build.log && exit 1) 52 - nginx -V 53 - ldd `which nginx`|grep -E 'luajit|ssl' 54 - prove -r t 55