]> www.wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
travis-ci: Add 32-bit build (i386)
authorVitaly Chikunov <vt@altlinux.org>
Fri, 31 Jan 2020 21:58:19 +0000 (00:58 +0300)
committerDmitry Belyavskiy <beldmit@users.noreply.github.com>
Sun, 2 Feb 2020 07:54:24 +0000 (10:54 +0300)
Make sure everything is OK on 32-bit platform.

.travis.yml

index 9a4ebfd82c6e8038642b9873133fcdff5dbd1b23..4dff6b59b6c25ad3d932ff14263547f765dda787 100644 (file)
@@ -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 ..