travis: do out-of-tree build in travis

When developing, we usually do in-tree-builds, so that case is
already better tested in every-day usage. It makes sense for
travis to test the less-well-tested case: the out-of-tree
build with autotools.
This commit is contained in:
Thomas Haller 2018-07-12 15:48:02 +02:00
parent a75ab799e4
commit b4e6cf60f3

View file

@ -104,15 +104,19 @@ script:
- |
if test "$BUILD_TYPE" == 'autotools'; then
git clean -fdx &&
./autogen.sh --prefix="$PWD/INST" --with-systemd-logind=no --enable-more-warnings=no --enable-ifcfg-rh --enable-config-plugin-ibft --enable-ifupdown --enable-tests &&
NOCONFIGURE=1 ./autogen.sh &&
mkdir ./build &&
pushd ./build &&
../configure --prefix="$PWD/INST" --with-systemd-logind=no --enable-more-warnings=no --enable-ifcfg-rh --enable-config-plugin-ibft --enable-ifupdown --enable-tests &&
make -j4 &&
if [ "$CC" == gcc ]; then
sudo locale-gen pl_PL.UTF-8 &&
sudo make install &&
NM_TEST_CLIENT_CHECK_L10N=1 ./contrib/travis/travis-check.sh
NM_TEST_CLIENT_CHECK_L10N=1 ../contrib/travis/travis-check.sh
else
./contrib/travis/travis-check.sh
fi
../contrib/travis/travis-check.sh
fi &&
popd
fi
env: