]> git.ipfire.org Git - thirdparty/lldpd.git/blob - .travis/run.sh
tests: report complete Linux version as well
[thirdparty/lldpd.git] / .travis / run.sh
1 #!/bin/sh
2
3 set -e
4
5 case "${RUN_COVERITY}","${TRAVIS_BRANCH}" in
6 0,"${COVERITY_SCAN_BRANCH_PATTERN}")
7 exit 0
8 ;;
9 1,"${COVERITY_SCAN_BRANCH_PATTERN}")
10 # OK
11 ;;
12 1,*)
13 exit 0
14 ;;
15 esac
16
17 ./autogen.sh
18 ./configure $LLDPD_CONFIG_ARGS --enable-pie CFLAGS="-O0 -g"
19
20 if [ x"${RUN_COVERITY}" = x"1" ]; then
21 # Coverity build
22 [ x"${COVERITY_SCAN_TOKEN}" = x"" ] || \
23 curl -s https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh | \
24 COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG" \
25 COVERITY_SCAN_BUILD_COMMAND="make CFLAGS=-Werror" \
26 bash
27 else
28 # Regular build
29 make all check CFLAGS=-Werror
30 if [ x"$RUN_INTEGRATION" = x"1" ]; then
31 cd tests
32 sudo setfacl -m u:$(id -un):r /boot/vmlinuz-*
33 make integration-tests
34 sh integration-tests
35 else
36 make distcheck
37 if [ x"$TRAVIS_OS_NAME" = x"osx" ]; then
38 make -C osx pkg
39 fi
40 fi
41 fi