travis-ci: add build matrix

This commit is contained in:
Дмитрий Левин 2015-11-30 22:18:16 +00:00
parent 144a9db236
commit c9d2501a36
2 changed files with 18 additions and 5 deletions

View File

@ -1,8 +1,5 @@
language: c
compiler:
- gcc
dist: trusty
script: ./travis-ci.sh
@ -20,3 +17,9 @@ env:
- ENABLE_GCC_WERROR="--enable-gcc-Werror"
- SLEEP_A_BIT="sleep 0.1"
- VERBOSE="1"
matrix:
include:
- env: TARGET=x86_64
- env: TARGET=x32
- env: TARGET=x86

View File

@ -4,6 +4,16 @@ j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
set -x
git fetch --unshallow
./git-set-file-times
case "${TARGET-}" in
x32)
CC="$CC -mx32"
;;
x86)
export DISTCHECK_CONFIGURE_FLAGS='--build=i686-pc-linux-gnu'
CC="$CC -m32"
;;
esac
export CC_FOR_BUILD="$CC"
./bootstrap
./configure --enable-maintainer-mode ${ENABLE_GCC_WERROR-}
make $j distcheck VERBOSE=${VERBOSE-}
./configure --enable-maintainer-mode ${ENABLE_GCC_WERROR-} ${DISTCHECK_CONFIGURE_FLAGS-}
make -k $j distcheck VERBOSE=${VERBOSE-}