Skip to content

Commit 2f5b46d

Browse files
committed
travis-ci: added nginx-1.11.2 to build matrix, moved package management under "apt" plugin
1 parent 72d8cf5 commit 2f5b46d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.travis.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,12 @@ compiler:
99
- gcc
1010
- clang
1111

12+
addons:
13+
apt:
14+
packages: [ axel, cpanminus, libgd-dev, libtest-base-perl, libtext-diff-perl, liburi-perl, libwww-perl, libtest-longstring-perl, liblist-moreutils-perl ]
15+
1216
cache:
17+
apt: true
1318
directories:
1419
- download-cache
1520

@@ -29,17 +34,14 @@ env:
2934
- TEST_NGINX_SLEEP=0.006
3035
matrix:
3136
- NGINX_VERSION=1.9.15
37+
- NGINX_VERSION=1.11.2
3238

3339
services:
3440
- memcache
3541
- redis-server
3642

37-
before_install:
38-
- sudo apt-get install -qq -y axel cpanminus libgd-dev libtest-base-perl libtext-diff-perl liburi-perl libwww-perl libtest-longstring-perl liblist-moreutils-perl > build.log 2>&1 || (cat build.log && exit 1)
39-
4043
install:
41-
- if [ ! -d download-cache ]; then mkdir download-cache; fi
42-
- if [ ! -f download-cache/pcre-$PCRE_VER.tar.gz ]; then wget -O download-cache/pcre-$PCRE_VER.tar.gz http://ftp.cs.stanford.edu/pub/exim/pcre/pcre-$PCRE_VER.tar.gz; fi
44+
- if [ ! -f download-cache/pcre-$PCRE_VER.tar.gz ]; then wget -P download-cache/ http://ftp.cs.stanford.edu/pub/exim/pcre/pcre-$PCRE_VER.tar.gz; fi
4345
- git clone https://github.com/openresty/nginx-devel-utils.git
4446
- git clone https://github.com/openresty/lua-cjson.git
4547
- git clone https://github.com/openresty/openresty.git ../openresty

0 commit comments

Comments
 (0)