mirror of
https://github.com/openresty/openresty
synced 2024-11-09 18:35:51 +01:00
test: fixed travis.yml.
This commit is contained in:
parent
a8f26b9419
commit
476b640fbb
91
.travis.yml
91
.travis.yml
@ -1,10 +1,15 @@
|
|||||||
dist: bionic
|
dist: focal
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- "master"
|
- "master"
|
||||||
|
|
||||||
os: linux
|
os: linux
|
||||||
|
arch:
|
||||||
|
- amd64
|
||||||
|
- arm64
|
||||||
|
- s390x
|
||||||
|
- ppc64le
|
||||||
|
|
||||||
language: c
|
language: c
|
||||||
|
|
||||||
@ -17,85 +22,14 @@ addons:
|
|||||||
- axel
|
- axel
|
||||||
- dos2unix
|
- dos2unix
|
||||||
- libgd-dev
|
- libgd-dev
|
||||||
|
|
||||||
_linux-s390x: &linux-s390x
|
|
||||||
os: linux
|
|
||||||
arch: s390x
|
|
||||||
dist: bionic
|
|
||||||
compiler: gcc
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
update: true
|
|
||||||
packages:
|
|
||||||
- axel
|
|
||||||
- dos2unix
|
- dos2unix
|
||||||
- libgd-dev
|
|
||||||
- libpcre3
|
- libpcre3
|
||||||
- libpcre3-dev
|
- libpcre3-dev
|
||||||
- mercurial
|
- mercurial
|
||||||
- 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=1
|
||||||
install:
|
|
||||||
- cpanm --sudo --notest Test::Nginx IPC::Run3 > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- if [ ! -f download-cache/openssl-$OPENSSL_VER.tar.gz ]; then wget -P download-cache https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz || wget -P download-cache https://www.openssl.org/source/old/${OPENSSL_VER//[a-z]/}/openssl-$OPENSSL_VER.tar.gz; fi
|
|
||||||
- tar zxf download-cache/openssl-$OPENSSL_VER.tar.gz
|
|
||||||
- cd openssl-$OPENSSL_VER/
|
|
||||||
- patch -p1 < ../patches/openssl-$OPENSSL_PATCH_VER-sess_set_get_cb_yield.patch
|
|
||||||
- ./config no-threads shared enable-ssl3 enable-ssl3-method -g --prefix=$OPENSSL_PREFIX -DPURIFY > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- sudo make PATH=$PATH install_sw > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- cd ..
|
|
||||||
- sudo ln -s /usr/bin/make /usr/bin/gmake
|
|
||||||
script:
|
|
||||||
- util/mirror-tarballs > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- cd "openresty-$(./util/ver)"
|
|
||||||
- ./configure $ENABLE_HTTP3_OPTION --prefix=$OPENRESTY_PREFIX --with-cc-opt="-I$PCRE_INC -I$OPENSSL_INC" --with-ld-opt="-L$PCRE_LIB -L$OPENSSL_LIB -Wl,-rpath,$PCRE_LIB:$OPENSSL_LIB" --with-pcre-jit --with-http_ssl_module --with-debug -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- sudo make install > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- cd ..
|
|
||||||
- export PATH=$OPENRESTY_PREFIX/bin:$OPENRESTY_PREFIX/nginx/sbin:$PATH
|
|
||||||
- nginx -V
|
|
||||||
- ldd `which nginx`|grep -E 'luajit|ssl|pcre'
|
|
||||||
- prove -I. -r t/
|
|
||||||
|
|
||||||
_linux-ppc64le: &linux-ppc64le
|
|
||||||
os: linux
|
|
||||||
arch: ppc64le
|
|
||||||
dist: bionic
|
|
||||||
compiler: gcc
|
|
||||||
addons:
|
|
||||||
apt:
|
|
||||||
update: true
|
|
||||||
packages:
|
|
||||||
- axel
|
|
||||||
- dos2unix
|
|
||||||
- libgd-dev
|
|
||||||
- libpcre3
|
|
||||||
- libpcre3-dev
|
|
||||||
- mercurial
|
|
||||||
- libpq-dev
|
|
||||||
install:
|
|
||||||
- cpanm --sudo --notest Test::Nginx IPC::Run3 > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- if [ ! -f download-cache/openssl-$OPENSSL_VER.tar.gz ]; then wget -P download-cache https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz || wget -P download-cache https://www.openssl.org/source/old/${OPENSSL_VER//[a-z]/}/openssl-$OPENSSL_VER.tar.gz; fi
|
|
||||||
- tar zxf download-cache/openssl-$OPENSSL_VER.tar.gz
|
|
||||||
- cd openssl-$OPENSSL_VER/
|
|
||||||
- patch -p1 < ../patches/openssl-$OPENSSL_PATCH_VER-sess_set_get_cb_yield.patch
|
|
||||||
- ./config no-threads shared enable-ssl3 enable-ssl3-method -g --prefix=$OPENSSL_PREFIX -DPURIFY > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- sudo make PATH=$PATH install_sw > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- cd ..
|
|
||||||
- sudo ln -s /usr/bin/make /usr/bin/gmake
|
|
||||||
script:
|
|
||||||
- util/mirror-tarballs > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- cd "openresty-$(./util/ver)"
|
|
||||||
- ./configure $ENABLE_HTTP3_OPTION --prefix=$OPENRESTY_PREFIX --with-cc-opt="-I$PCRE_INC -I$OPENSSL_INC" --with-ld-opt="-L$PCRE_LIB -L$OPENSSL_LIB -Wl,-rpath,$PCRE_LIB:$OPENSSL_LIB" --with-pcre-jit --with-http_ssl_module --with-debug -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- sudo make install > build.log 2>&1 || (cat build.log && exit 1)
|
|
||||||
- cd ..
|
|
||||||
- export PATH=$OPENRESTY_PREFIX/bin:$OPENRESTY_PREFIX/nginx/sbin:$PATH
|
|
||||||
- nginx -V
|
|
||||||
- ldd `which nginx`|grep -E 'luajit|ssl|pcre'
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
@ -104,7 +38,7 @@ cache:
|
|||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- JOBS=3
|
- JOBS=3
|
||||||
- PCRE_VER=8.44
|
- PCRE_VER=8.45
|
||||||
- PCRE_PREFIX=/opt/pcre
|
- PCRE_PREFIX=/opt/pcre
|
||||||
- PCRE_LIB=$PCRE_PREFIX/lib
|
- PCRE_LIB=$PCRE_PREFIX/lib
|
||||||
- PCRE_INC=$PCRE_PREFIX/include
|
- PCRE_INC=$PCRE_PREFIX/include
|
||||||
@ -115,13 +49,6 @@ env:
|
|||||||
jobs:
|
jobs:
|
||||||
- OPENSSL_VER=1.1.1w OPENSSL_PATCH_VER=1.1.1f ENABLE_HTTP3_OPTION=--with-http_v3_module
|
- OPENSSL_VER=1.1.1w OPENSSL_PATCH_VER=1.1.1f ENABLE_HTTP3_OPTION=--with-http_v3_module
|
||||||
|
|
||||||
jobs:
|
|
||||||
include:
|
|
||||||
- <<: *linux-s390x
|
|
||||||
env: OPENSSL_VER=1.1.1w OPENSSL_PATCH_VER=1.1.1f ENABLE_HTTP3_OPTION=--with-http_v3_module
|
|
||||||
- <<: *linux-ppc64le
|
|
||||||
env: OPENSSL_VER=1.1.1w OPENSSL_PATCH_VER=1.1.1f ENABLE_HTTP3_OPTION=--with-http_v3_module
|
|
||||||
|
|
||||||
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)
|
||||||
- if [ ! -f download-cache/pcre-$PCRE_VER.tar.gz ]; then wget -P download-cache https://downloads.sourceforge.net/project/pcre/pcre/${PCRE_VER}/pcre-${PCRE_VER}.tar.gz; fi
|
- if [ ! -f download-cache/pcre-$PCRE_VER.tar.gz ]; then wget -P download-cache https://downloads.sourceforge.net/project/pcre/pcre/${PCRE_VER}/pcre-${PCRE_VER}.tar.gz; fi
|
||||||
|
Loading…
Reference in New Issue
Block a user