1 Star 1 Fork 0

Jun Peng / wget2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
.travis.sh 1.36 KB
一键复制 编辑 原始数据 按行查看 历史
#!/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
C
1
https://gitee.com/penjun71/wget2.git
git@gitee.com:penjun71/wget2.git
penjun71
wget2
wget2
master

搜索帮助