From: Vitaly Chikunov Date: Fri, 31 Jan 2020 21:58:19 +0000 (+0300) Subject: travis-ci: Add 32-bit build (i386) X-Git-Tag: v3.0.0~225 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=4d45f95faf7868b02e919aa28ca76d0645406167;p=openssl-gost%2Fengine.git travis-ci: Add 32-bit build (i386) Make sure everything is OK on 32-bit platform. --- diff --git a/.travis.yml b/.travis.yml index 9a4ebfd..4dff6b5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,6 +18,10 @@ matrix: - name: linux/clang/x86_64/openssl-master os: linux compiler: clang + - name: linux/gcc/i386/openssl-master + os: linux + compiler: gcc + env: CFLAGS=-m32 LDFLAGS=-m32 SETARCH="setarch i386" APT_INSTALL=gcc-multilib - name: linux/gcc/x86_64/openssl-1.1.1 os: linux compiler: gcc @@ -56,11 +60,12 @@ matrix: before_script: - curl -L https://cpanmin.us | sudo perl - --sudo App::cpanminus - sudo cpanm --notest Test2::V0 > build.log 2>&1 || (cat build.log && exit 1) + - if [ "$APT_INSTALL" ]; then sudo apt-get install -y $APT_INSTALL; fi - git clone --depth 1 -b ${OPENSSL_BRANCH} https://github.com/openssl/openssl.git - cd openssl - git describe --always --long - - ./config shared -d --prefix=${PREFIX} --openssldir=${PREFIX} -Wl,-rpath=${PREFIX}/lib - - travis_wait make -s -j$(nproc) build_sw + - $SETARCH ./config shared -d --prefix=${PREFIX} --openssldir=${PREFIX} -Wl,-rpath=${PREFIX}/lib + - travis_wait $SETARCH make -s -j$(nproc) build_sw - make -s install_sw - cd ..