From c7a3cfe57fb31eeae4935131ec61781da073c8f0 Mon Sep 17 00:00:00 2001 From: Krishna Harsha Voora Date: Tue, 11 May 2021 12:07:54 -0400 Subject: [PATCH] travis-ci: enable ci test for ppc64le. This PR fixes issue #731 For every PR, an equivalent Travis job is triggered for ppc64le architecture. Signed-off-by: Krishna Harsha Voora --- .travis.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/.travis.yml b/.travis.yml index 5924a5e..b55640a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,6 +56,45 @@ linux-s390x: &linux-s390x - nginx -V - ldd `which nginx`|grep -E 'luajit|ssl|pcre' +linux-ppc64le: &linux-ppc64le + os: linux + arch: ppc64le + dist: xenial + compiler: gcc + addons: + apt: + update: true + packages: + - axel + - dos2unix + - cpanminus + - libgd-dev + - libpcre3 + - libpcre3-dev + - mercurial + - libpq-dev + install: + - sudo cpanm --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-* + - ./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) + - 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: directories: - download-cache @@ -84,6 +123,8 @@ jobs: env: OPENSSL_VER=1.1.0l OPENSSL_PATCH_VER=1.1.0d - <<: *linux-s390x env: OPENSSL_VER=1.1.1k OPENSSL_PATCH_VER=1.1.1f + - <<: *linux-ppc64le + env: OPENSSL_VER=1.1.1k OPENSSL_PATCH_VER=1.1.1f install: - sudo cpanm --notest Test::Nginx IPC::Run3 > build.log 2>&1 || (cat build.log && exit 1)