tests: fixed ci.

master
lijunlong 1 week ago committed by GitHub
parent 0eace29b04
commit 7e3bbab001
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -29,7 +29,8 @@ addons:
- libpq-dev - libpq-dev
before_install: before_install:
- sudo sysctl -w net.ipv6.conf.all.disable_ipv6=1 - sudo sysctl -w net.ipv6.conf.all.disable_ipv6=0
- sudo sysctl -w net.ipv6.conf.default.disable_ipv6=0
cache: cache:
directories: directories:
@ -51,6 +52,7 @@ env:
install: install:
- cpanm --sudo --notest Test::Nginx IPC::Run3 > build.log 2>&1 || (cat build.log && exit 1) - cpanm --sudo --notest Test::Nginx IPC::Run3 > build.log 2>&1 || (cat build.log && exit 1)
- git clone https://github.com/openresty/test-nginx.git
- | - |
if [ "$TRAVIS_CPU_ARCH" != "s390x" ]; then if [ "$TRAVIS_CPU_ARCH" != "s390x" ]; then
if [ ! -f download-cache/pcre2-$PCRE_VER.tar.gz ]; then wget -P download-cache https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${PCRE_VER}/pcre2-${PCRE_VER}.tar.gz; fi if [ ! -f download-cache/pcre2-$PCRE_VER.tar.gz ]; then wget -P download-cache https://github.com/PCRE2Project/pcre2/releases/download/pcre2-${PCRE_VER}/pcre2-${PCRE_VER}.tar.gz; fi
@ -81,4 +83,4 @@ script:
- export PATH=$OPENRESTY_PREFIX/bin:$OPENRESTY_PREFIX/nginx/sbin:$PATH - export PATH=$OPENRESTY_PREFIX/bin:$OPENRESTY_PREFIX/nginx/sbin:$PATH
- nginx -V - nginx -V
- ldd `which nginx`|grep -E 'luajit|ssl|pcre' - ldd `which nginx`|grep -E 'luajit|ssl|pcre'
- prove -I. -r t/ - prove -Itest-nginx/inc -Itest-nginx/lib -I. -r t/

Loading…
Cancel
Save