代码拉取完成,页面将自动刷新
#!/bin/bash
set -e
BOOTSTRAP_OPTIONS=
CONFIGURE_OPTIONS=()
export CFLAGS="-O0 -g"
test "$CC" = "clang" && export CXX="clang++"
if [[ $TRAVIS_OS_NAME = 'osx' ]]; then
CONFIGURE_OPTIONS+=("")
# Install Libmicrohttpd from source
cd ..
wget https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.55.tar.gz
tar zxf libmicrohttpd-0.9.55.tar.gz && cd libmicrohttpd-0.9.55
./configure
make clean
make -j3
make install
cd - && cd wget2
else
CONFIGURE_OPTIONS+=("--enable-valgrind-tests")
fi
# TravisCI has old gettext
sed 's/\[0.19.3\]/[0.18.2\]/g' configure.ac >configure.ac.tmp
mv configure.ac.tmp configure.ac
./bootstrap ${BOOTSTRAP_OPTIONS}
for OPTS in "${CONFIGURE_OPTIONS[@]}"; do
./configure -C $OPTS
if test "$TRAVIS_OS_NAME" = 'osx'; then
# On OSX we are unable to find the Wget2 dylibs without
# installing first. However `make install` on linux systems
# fail due to insufficient permissions
make install -j3
fi
if make clean check -j3; then :; else
test -f fuzz/test-suite.log && tail -1000 fuzz/test-suite.log
test -f unit-tests/test-suite.log && tail -1000 unit-tests/test-suite.log
test -f tests/test-suite.log && tail -1000 tests/test-suite.log
exit 1
fi
done
make distcheck -j3
if [[ $CC = 'gcc' && $TRAVIS_OS_NAME = 'linux' ]]; then
make check-coverage
coveralls --include libwget/ --include src/ -e "libwget/<stdout>" -e lib/ -e tests/
fi
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。