Dmitry V. Levin
cb7409c87a
* travis-ci.sh: Split into travis-build.sh, travis-install.sh, and travis-success.sh files. * .travis.yml (before_install, after_success, git): New mappings. (script): Change to travis-build.sh. (addons, install): Remove. (env): Remove matrix. (matrix): Replace exclude list with include list.
33 lines
674 B
Bash
Executable File
33 lines
674 B
Bash
Executable File
#!/bin/sh -ex
|
|
|
|
case "$CC" in
|
|
gcc)
|
|
ENABLE_GCC_WERROR=--enable-gcc-Werror
|
|
;;
|
|
clang-*)
|
|
# clang -mx32 fails with the following error:
|
|
# clang: error: clang frontend command failed with exit code 70 (use -v to see invocation)
|
|
export st_cv_mx32_runtime=no
|
|
;;
|
|
esac
|
|
|
|
case "${TARGET-}" in
|
|
x32)
|
|
CC="$CC -mx32"
|
|
;;
|
|
x86)
|
|
CC="$CC -m32"
|
|
export DISTCHECK_CONFIGURE_FLAGS='--build=i686-pc-linux-gnu'
|
|
;;
|
|
esac
|
|
|
|
$CC --version
|
|
export CC_FOR_BUILD="$CC"
|
|
|
|
./git-set-file-times
|
|
./bootstrap
|
|
./configure --enable-maintainer-mode ${ENABLE_GCC_WERROR-} ${DISTCHECK_CONFIGURE_FLAGS-}
|
|
|
|
j=-j`getconf _NPROCESSORS_ONLN 2> /dev/null` || j=
|
|
make -k $j distcheck VERBOSE=${VERBOSE-}
|