@@ -17,15 +17,53 @@ addons:
1717 - cpanminus
1818 - libgd-dev
1919
20+ linux-s390x : &linux-s390x
21+ os : linux
22+ arch : s390x
23+ dist : xenial
24+ compiler : gcc
25+ addons :
26+ apt :
27+ update : true
28+ packages :
29+ - axel
30+ - dos2unix
31+ - cpanminus
32+ - libgd-dev
33+ - libpcre3
34+ - libpcre3-dev
35+ - mercurial
36+ - libpq-dev
37+ install :
38+ - sudo cpanm --notest Test::Nginx IPC::Run3 > build.log 2>&1 || (cat build.log && exit 1)
39+ - 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
40+ - tar zxf download-cache/openssl-$OPENSSL_VER.tar.gz
41+ - cd openssl-$OPENSSL_VER/
42+ - patch -p1 < ../patches/openssl-$OPENSSL_PATCH_VER-sess_set_get_cb_yield.patch
43+ - ./config no-threads shared enable-ssl3 enable-ssl3-method -g --prefix=$OPENSSL_PREFIX -DPURIFY > build.log 2>&1 || (cat build.log && exit 1)
44+ - make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
45+ - sudo make PATH=$PATH install_sw > build.log 2>&1 || (cat build.log && exit 1)
46+ - cd ..
47+ - sudo ln -s /usr/bin/make /usr/bin/gmake
48+ script :
49+ - util/mirror-tarballs > build.log 2>&1 || (cat build.log && exit 1)
50+ - cd openresty-*
51+ - ./configure --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)
52+ - make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
53+ - sudo make install > build.log 2>&1 || (cat build.log && exit 1)
54+ - cd ..
55+ - export PATH=$OPENRESTY_PREFIX/bin:$OPENRESTY_PREFIX/nginx/sbin:$PATH
56+ - nginx -V
57+ - ldd `which nginx`|grep -E 'luajit|ssl|pcre'
58+
2059cache :
2160 directories :
2261 - download-cache
2362
2463env :
2564 global :
26- - VERSION=1.17.0.rc1
2765 - JOBS=3
28- - PCRE_VER=8.41
66+ - PCRE_VER=8.44
2967 - PCRE_PREFIX=/opt/pcre
3068 - PCRE_LIB=$PCRE_PREFIX/lib
3169 - PCRE_INC=$PCRE_PREFIX/include
3472 - OPENSSL_INC=$OPENSSL_PREFIX/include
3573 - OPENRESTY_PREFIX=/opt/openresty
3674 matrix :
37- - OPENSSL_VER=1.0.2q OPENSSL_PATCH_VER=1.0.2h
38- - OPENSSL_VER=1.1.0j OPENSSL_PATCH_VER=1.1.0d
39- - OPENSSL_VER=1.1.1c OPENSSL_PATCH_VER=1.1.1c
40- before_install :
41- - sudo apt-get update
42- - sudo apt-get install dos2unix curl perl
75+ - OPENSSL_VER=1.0.2u OPENSSL_PATCH_VER=1.0.2h
76+ - OPENSSL_VER=1.1.0l OPENSSL_PATCH_VER=1.1.0d
77+ - OPENSSL_VER=1.1.1f OPENSSL_PATCH_VER=1.1.1f
78+
79+ jobs :
80+ include :
81+ - << : *linux-s390x
82+ env : OPENSSL_VER=1.0.2u OPENSSL_PATCH_VER=1.0.2h
83+ - << : *linux-s390x
84+ env : OPENSSL_VER=1.1.0l OPENSSL_PATCH_VER=1.1.0d
85+ - << : *linux-s390x
86+ env : OPENSSL_VER=1.1.1f OPENSSL_PATCH_VER=1.1.1f
87+
4388install :
4489 - sudo cpanm --notest Test::Nginx IPC::Run3 > build.log 2>&1 || (cat build.log && exit 1)
45- - 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
46- - if [ ! -f download-cache/openssl-$OPENSSL_VER.tar.gz ]; then wget -P download-cache https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz; fi
90+ - if [ ! -f download-cache/pcre-$PCRE_VER.tar.gz ]; then wget -P download-cache https ://ftp.pcre.org /pub/pcre/pcre-$PCRE_VER.tar.gz; fi
91+ - 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
4792 - tar zxf download-cache/pcre-$PCRE_VER.tar.gz
4893 - cd pcre-$PCRE_VER/
4994 - ./configure --prefix=$PCRE_PREFIX --enable-jit --enable-utf --enable-unicode-properties > build.log 2>&1 || (cat build.log && exit 1)
@@ -69,52 +114,4 @@ script:
69114 - export PATH=$OPENRESTY_PREFIX/bin:$OPENRESTY_PREFIX/nginx/sbin:$PATH
70115 - nginx -V
71116 - ldd `which nginx`|grep -E 'luajit|ssl|pcre'
72- <<<<<<< HEAD
73- - prove -I. -r t/
74- - ROOT=$(pwd)
75- - mkdir -p /tmp
76- - mkdir -p /opt
77- - mkdir -p /opt/openssl
78- - curl -fsSL https://www.openssl.org/source/openssl-1.1.1b.tar.gz -o /tmp/openssl.tar.gz
79- - tar -C /opt/openssl -xzf /tmp/openssl.tar.gz --strip-components 1
80- - cd /opt/openssl
81- - ls
82- - ./config
83- - sudo make 1> /dev/null
84- - sudo make install_sw 1> /dev/null
85- - sudo ldconfig
86- - cd $ROOT
87- - make
88- - cd $ROOT/openresty-$VERSION
89- - sudo ./configure
90- - sudo make
91- - sudo make install
92- - export PATH=/usr/local/openresty/nginx/sbin:$PATH
93- - cd $ROOT
94- - git clone https://github.com/openresty/test-nginx
95- - cd test-nginx
96- - yes | sudo cpan .
97- - cd $ROOT/openresty-$VERSION/bundle/
98- - ls -l
99- - cd $ROOT/openresty-$VERSION/bundle/array-var-nginx-module-0.05
100- - prove t/.
101- - cd $ROOT/openresty-$VERSION/bundle/echo-nginx-module-0.61
102- - prove t/abort-parent.t
103- - prove t/echo-duplicate.t
104- - prove t/echo-timer.t
105- - prove t/filter-used.t
106- - prove t/gzip.t
107- - prove t/incr.t
108- - prove t/request-body.t
109- - prove t/status.t
110- - prove t/exec.t
111- - prove t/if.t
112- - prove t/mixed.t
113- - prove t/request-info.t
114- - prove t/sleep.t
115-
116- - cd $ROOT/openresty-$VERSION/bundle/form-input-nginx-module-0.12
117- - prove t/.
118- =======
119117 - prove -r t/
120- >>>>>>> 7508c1852265bd04fdb2dfd64989d4c490440f1a
0 commit comments