forked from rockdaboot/wget2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.sh
executable file
·35 lines (27 loc) · 863 Bytes
/
.travis.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/bash
set -e
BOOTSTRAP_OPTIONS=
CONFIGURE_OPTIONS=()
export CFLAGS="-O0 -g"
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
CONFIGURE_OPTIONS+=("")
else
CONFIGURE_OPTIONS+=("--enable-fsanitize-asan --enable-fsanitize-ubsan")
CONFIGURE_OPTIONS+=("--enable-valgrind-tests")
fi
./bootstrap ${BOOTSTRAP_OPTIONS}
# On OSX we are unable to find the Wget2 dylibs without installing first
# However `make install` on linux systems fail due to insufficient permissions
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
./configure -C
make install -j3
fi
for OPTS in "${CONFIGURE_OPTIONS[@]}"; do
./configure -C $OPTS
make clean check -j3 || (cat tests/test-suite.log && exit 1)
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