]> granicus.if.org Git - gc/commitdiff
Travis CI: compile both for x86 and x64
authorIvan Maidanski <ivmai@mail.ru>
Sun, 29 Jan 2017 05:51:30 +0000 (08:51 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Mon, 6 Feb 2017 19:24:50 +0000 (22:24 +0300)
(Cherry-pick part of commits caa4a796c48bae64eb548 from 'master'.)

.travis.yml

index d2fc2678ddfef09b020e6508e26d5270f472495d..1d65e4ddd4606192f2d896dfaeb5ad51d6943b0d 100644 (file)
@@ -8,12 +8,21 @@ compiler:
   - clang
   - gcc
 
+env:
+  - CFLAGS_EXTRA_M=
+  - CFLAGS_EXTRA_M=-m32
+
 matrix:
   exclude:
   - os: osx
     compiler: gcc
 
-sudo: false
+sudo: required
+
+before_install:
+  - if [[ "$TRAVIS_OS_NAME" == "linux" && "$CFLAGS_EXTRA_M" == "-m32" ]]; then
+      sudo apt-get install gcc-multilib;
+    fi
 
 install:
   - git clone --depth=50 https://github.com/ivmai/libatomic_ops.git -b release-7_4
@@ -21,4 +30,4 @@ install:
 
 script:
   - ./configure --enable-munmap
-  - make -j check
+  - make -j check CFLAGS_EXTRA="$CFLAGS_EXTRA_M"