Skip to content

Commit 676cbdd

Browse files
tests: bumped the NGINX core to 1.29.2.
1 parent 8710111 commit 676cbdd

File tree

2 files changed

+25
-34
lines changed

2 files changed

+25
-34
lines changed

.travis.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ env:
2626
- LUA_INCLUDE_DIR=$LUAJIT_INC
2727
- LUA_CMODULE_DIR=/lib
2828
- JOBS=3
29-
- PCRE_VER=8.44
29+
- PCRE_VER=10.46
3030
- PCRE_PREFIX=/opt/pcre
3131
- PCRE_LIB=$PCRE_PREFIX/lib
3232
- PCRE_INC=$PCRE_PREFIX/include
@@ -36,12 +36,12 @@ env:
3636
- NGX_BUILD_JOBS=$JOBS
3737
- TEST_NGINX_SLEEP=0.006
3838
matrix:
39-
- NGINX_VERSION=1.27.1 OPENSSL_VER=1.1.1u
39+
- NGINX_VERSION=1.29.2 OPENSSL_VER=3.5.4
4040

4141
install:
4242
- if [ ! -d download-cache ]; then mkdir download-cache; fi
43-
- 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
44-
- if [ ! -f download-cache/openssl-$OPENSSL_VER.tar.gz ]; then wget -O download-cache/openssl-$OPENSSL_VER.tar.gz https://www.openssl.org/source/openssl-$OPENSSL_VER.tar.gz; fi
43+
- if [ -n "$PCRE_VER" ] && [ ! -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
44+
- if [ -n "$OPENSSL_VER" ] && [ ! -f download-cache/openssl-$OPENSSL_VER.tar.gz ]; then wget -P download-cache https://github.com/openssl/openssl/releases/download/openssl-$OPENSSL_VER/openssl-$OPENSSL_VER.tar.gz || 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
4545
- git clone https://github.com/openresty/nginx-devel-utils.git
4646
- git clone https://github.com/openresty/openresty.git ../openresty
4747
- git clone https://github.com/openresty/lua-resty-core.git ../lua-resty-core
@@ -58,18 +58,9 @@ script:
5858
- 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)
5959
- sudo make install PREFIX=$LUAJIT_PREFIX > build.log 2>&1 || (cat build.log && exit 1)
6060
- cd ..
61-
- tar zxf download-cache/pcre-$PCRE_VER.tar.gz
62-
- cd pcre-$PCRE_VER/
63-
- ./configure --prefix=$PCRE_PREFIX --enable-jit --enable-utf --enable-unicode-properties > build.log 2>&1 || (cat build.log && exit 1)
64-
- make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
65-
- sudo PATH=$PATH make install > build.log 2>&1 || (cat build.log && exit 1)
66-
- cd ..
67-
- tar zxf download-cache/openssl-$OPENSSL_VER.tar.gz
68-
- cd openssl-$OPENSSL_VER/
69-
- ./config shared --prefix=$OPENSSL_PREFIX -DPURIFY > build.log 2>&1 || (cat build.log && exit 1)
70-
- make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1)
71-
- sudo make PATH=$PATH install_sw > build.log 2>&1 || (cat build.log && exit 1)
72-
- cd ../test-nginx && sudo cpanm . && cd ..
61+
- if [ -n "$PCRE_VER" ]; then tar zxf download-cache/pcre2-$PCRE_VER.tar.gz; cd pcre2-$PCRE_VER/; ./configure --prefix=$PCRE2_PREFIX --enable-jit --enable-utf > build.log 2>&1 || (cat build.log && exit 1); make -j$JOBS > build.log 2>&1 || (cat build.log && exit 1); sudo PATH=$PATH make install > build.log 2>&1 || (cat build.log && exit 1); cd ..; fi
62+
- if [ -n "$OPENSSL_VER" ]; then tar zxf download-cache/openssl-$OPENSSL_VER.tar.gz; cd openssl-$OPENSSL_VER/; patch -p1 < ../../openresty/patches/openssl-$OPENSSL_PATCH_VER-sess_set_get_cb_yield.patch; ./config shared enable-ssl3 enable-ssl3-method -g --prefix=$OPENSSL_PREFIX --libdir=lib -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 ..; fi
63+
- cd test-nginx && sudo cpanm . && cd ..
7364
- export PATH=$PWD/work/nginx/sbin:$PWD/nginx-devel-utils:$PATH
7465
- export NGX_BUILD_CC=$CC
7566
- sh util/build.sh $NGINX_VERSION > build.log 2>&1 || (cat build.log && exit 1)

util/build.sh

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,24 @@ version=$1
1515
force=$2
1616

1717
ngx-build $force $version \
18-
--with-cc-opt="-I$PCRE_INC -I$OPENSSL_INC" \
19-
--with-ld-opt="-L$PCRE_LIB -L$OPENSSL_LIB -Wl,-rpath,$PCRE_LIB:$OPENSSL_LIB" \
20-
--with-http_ssl_module \
21-
--without-mail_pop3_module \
22-
--without-mail_imap_module \
23-
--without-mail_smtp_module \
24-
--without-http_upstream_ip_hash_module \
25-
--without-http_empty_gif_module \
26-
--without-http_memcached_module \
27-
--without-http_referer_module \
28-
--without-http_autoindex_module \
29-
--without-http_auth_basic_module \
30-
--without-http_userid_module \
31-
--add-module=../echo-nginx-module \
32-
--add-module=../ndk-nginx-module \
33-
--add-module=../lua-nginx-module \
34-
--add-module=$root $opts \
35-
--with-debug
18+
--with-cc-opt="-I$PCRE_INC -I$OPENSSL_INC" \
19+
--with-ld-opt="-L$PCRE_LIB -L$OPENSSL_LIB -Wl,-rpath,$PCRE_LIB:$OPENSSL_LIB" \
20+
--with-http_ssl_module \
21+
--without-mail_pop3_module \
22+
--without-mail_imap_module \
23+
--without-mail_smtp_module \
24+
--without-http_upstream_ip_hash_module \
25+
--without-http_empty_gif_module \
26+
--without-http_memcached_module \
27+
--without-http_referer_module \
28+
--without-http_autoindex_module \
29+
--without-http_auth_basic_module \
30+
--without-http_userid_module \
31+
--add-module=../echo-nginx-module \
32+
--add-module=../ndk-nginx-module \
33+
--add-module=../lua-nginx-module \
34+
--add-module=$root $opts \
35+
--with-debug
3636
#--with-cc-opt="-g3 -O0"
3737
#--add-module=$root/../echo-nginx-module \
3838
#--without-http_ssi_module # we cannot disable ssi because echo_location_async depends on it (i dunno why?!)

0 commit comments

Comments
 (0)