Revert "Use --without-gcc-arch for Travis packaging."

This reverts commit b2ddd3f96e16a5cebecc46c9b5e6a87e542ac5f8.
This commit is contained in:
Alexey Kopytov
2017-04-09 22:11:02 +03:00
parent f5a9b34a61
commit 8ef8ed002d

View File

@ -108,6 +108,15 @@ addons:
- clang-3.6
before_install:
# Upload builds corresponding to release tags to the 'sysbench'
# repository, push other ones to 'sysbench-prereleases'
- commits=$(git describe --long --always | sed -n 's/^\([0-9\.]*\)-\([0-9]*\)-\([a-z0-9]*\)/\2/p')
- >
if [ ${commits:-0} = 0 ]; then
PACKAGECLOUD_REPO=sysbench
else
PACKAGECLOUD_REPO=sysbench-prereleases
fi
- >
if [ "x$TARGET" = "xtest" ]; then
case "${TRAVIS_OS_NAME:-linux}" in
@ -147,18 +156,6 @@ install:
esac
before_script:
# Upload builds corresponding to release tags to the 'sysbench'
# repository, push other ones to 'sysbench-prereleases'
- commits=$(git describe --long --always | sed -n 's/^\([0-9\.]*\)-\([0-9]*\)-\([a-z0-9]*\)/\2/p')
- >
if [ ${commits:-0} = 0 ]; then
PACKAGECLOUD_REPO=sysbench
else
PACKAGECLOUD_REPO=sysbench-prereleases
fi
# AX_GCC_ARCH cannot be used for packaging, need generic/native
# instruction sets
- CONFIGURE_FLAGS="--without-gcc-arch"
- mysql -u root -e 'CREATE DATABASE sbtest'
- psql -U postgres -c 'CREATE DATABASE sbtest'
@ -167,17 +164,17 @@ script:
if [ -n "$TARGET" ]; then
case "$TARGET" in
test)
./autogen.sh && ./configure $CONFIGURE_FLAGS --with-mysql --with-pgsql
./autogen.sh && ./configure --with-mysql --with-pgsql
make
SBTEST_MYSQL_ARGS="--mysql-user=root" SBTEST_PGSQL_ARGS="--pgsql-user=postgres" make test
;;
distcheck)
./autogen.sh && ./configure $CONFIGURE_FLAGS --without-mysql
./autogen.sh && ./configure --without-mysql
make
make distcheck
;;
coverage)
./autogen.sh && ./configure $CONFIGURE_FLAGS --enable-coverage --enable-asan --enable-msan --with-mysql --with-pgsql
./autogen.sh && ./configure --enable-coverage --enable-asan --enable-msan --with-mysql --with-pgsql
make -j2
SBTEST_MYSQL_ARGS="--mysql-user=root" SBTEST_PGSQL_ARGS="--pgsql-user=postgres" make test
;;