2021-10-16 08:34:50 +02:00
dist : bionic
2019-02-04 22:22:05 +01:00
2023-11-23 11:09:34 +01:00
branches :
only :
- " master "
2019-02-04 22:22:05 +01:00
os : linux
language : c
compiler :
- gcc
addons :
apt :
packages :
- axel
- dos2unix
- libgd - dev
2020-04-03 01:44:21 +02:00
2021-11-05 08:56:13 +01:00
_linux - s390x : & linux - s390x
2020-02-05 10:18:35 +01:00
os : linux
arch : s390x
2021-10-16 08:34:50 +02:00
dist : bionic
2020-02-05 10:18:35 +01:00
compiler : gcc
addons :
apt :
update : true
packages :
- axel
- dos2unix
- libgd - dev
2020-10-18 04:40:49 +02:00
- libpcre3
- libpcre3 - dev
- mercurial
2020-02-05 10:18:35 +01:00
- libpq - dev
2023-03-23 11:23:03 +01:00
before_install :
- sudo sysctl - w net . ipv6 . conf . all . disable_ipv6 = 1
2020-02-05 10:18:35 +01:00
install :
2023-03-07 05:25:28 +01:00
- cpanm - - sudo - - notest Test : : Nginx IPC : : Run3 > build . log 2 > & 1 | | ( cat build . log & & exit 1 )
2020-04-03 00:12:29 +02:00
- 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
2020-02-05 10:18:35 +01:00
- 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 )
2021-10-16 08:34:50 +02:00
- cd " openresty-$(./util/ver) "
2023-08-05 16:28:24 +02:00
- . / 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 )
2020-02-05 10:18:35 +01:00
- 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 '
2022-02-06 08:41:46 +01:00
- prove - I . - r t /
2020-04-03 01:44:21 +02:00
2021-11-05 08:56:13 +01:00
_linux - ppc64le : & linux - ppc64le
2021-05-11 18:07:54 +02:00
os : linux
arch : ppc64le
2021-10-16 08:34:50 +02:00
dist : bionic
2021-05-11 18:07:54 +02:00
compiler : gcc
addons :
apt :
update : true
packages :
- axel
- dos2unix
- libgd - dev
- libpcre3
- libpcre3 - dev
- mercurial
- libpq - dev
install :
2023-03-07 05:25:28 +01:00
- cpanm - - sudo - - notest Test : : Nginx IPC : : Run3 > build . log 2 > & 1 | | ( cat build . log & & exit 1 )
2021-05-11 18:07:54 +02:00
- 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 )
2021-10-16 08:34:50 +02:00
- cd " openresty-$(./util/ver) "
2023-08-05 16:28:24 +02:00
- . / 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 )
2021-05-11 18:07:54 +02:00
- 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 '
2019-02-04 22:22:05 +01:00
cache :
directories :
- download - cache
env :
global :
- JOBS = 3
2020-04-03 01:44:21 +02:00
- PCRE_VER = 8.44
2019-02-04 22:22:05 +01:00
- PCRE_PREFIX = / opt / pcre
- PCRE_LIB = $ PCRE_PREFIX / lib
- PCRE_INC = $ PCRE_PREFIX / include
- OPENSSL_PREFIX = / opt / ssl
- OPENSSL_LIB = $ OPENSSL_PREFIX / lib
- OPENSSL_INC = $ OPENSSL_PREFIX / include
- OPENRESTY_PREFIX = / opt / openresty
2021-11-05 08:56:13 +01:00
jobs :
2024-01-13 03:16:10 +01:00
- OPENSSL_VER = 1.1 .1 w OPENSSL_PATCH_VER = 1.1 .1f ENABLE_HTTP3_OPTION = - - with - http_v3_module
2019-02-04 22:22:05 +01:00
2020-02-05 10:18:35 +01:00
jobs :
include :
- < < : * linux - s390x
2024-01-13 03:16:10 +01:00
env : OPENSSL_VER = 1.1 .1 w OPENSSL_PATCH_VER = 1.1 .1f ENABLE_HTTP3_OPTION = - - with - http_v3_module
2021-05-11 18:07:54 +02:00
- < < : * linux - ppc64le
2024-01-13 03:16:10 +01:00
env : OPENSSL_VER = 1.1 .1 w OPENSSL_PATCH_VER = 1.1 .1f ENABLE_HTTP3_OPTION = - - with - http_v3_module
2020-04-03 00:12:29 +02:00
2019-02-04 22:22:05 +01:00
install :
2023-03-07 05:25:28 +01:00
- cpanm - - sudo - - notest Test : : Nginx IPC : : Run3 > build . log 2 > & 1 | | ( cat build . log & & exit 1 )
2021-11-05 15:47:25 +01:00
- 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
2020-04-03 00:12:29 +02:00
- 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
2019-02-04 22:22:05 +01:00
- tar zxf download - cache / pcre - $ PCRE_VER . tar . gz
- cd pcre - $ PCRE_VER /
- . / configure - - prefix = $ PCRE_PREFIX - - enable - jit - - enable - utf - - enable - unicode - properties > 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 . .
- 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
2019-07-15 20:05:35 +02:00
- . / config no - threads shared enable - ssl3 enable - ssl3 - method - g - - prefix = $ OPENSSL_PREFIX - DPURIFY > build . log 2 > & 1 | | ( cat build . log & & exit 1 )
2019-02-04 22:22:05 +01:00
- 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 )
2021-10-16 08:34:50 +02:00
- cd " openresty-$(./util/ver) "
2023-08-05 16:28:24 +02:00
- . / 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 )
2019-02-04 22:22:05 +01:00
- 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 '
2021-10-16 08:34:50 +02:00
- prove - I . - r t /