]> git.ipfire.org Git - thirdparty/lldpd.git/blob - tests/ci/run.sh
travis: move install/run steps into tests/ci
[thirdparty/lldpd.git] / tests / ci / run.sh
1 #!/bin/sh
2
3 set -e
4
5 # Handle coverity scan
6 case "${RUN_COVERITY}","${TRAVIS_BRANCH}" in
7 0,"${COVERITY_SCAN_BRANCH_PATTERN}")
8 exit 0
9 ;;
10 1,"${COVERITY_SCAN_BRANCH_PATTERN}")
11 [ x"${COVERITY_SCAN_TOKEN}" = x"" ] || \
12 curl -s https://scan.coverity.com/scripts/travisci_build_coverity_scan.sh | \
13 COVERITY_SCAN_PROJECT_NAME="$TRAVIS_REPO_SLUG" \
14 COVERITY_SCAN_BUILD_COMMAND="make CFLAGS=-Werror" \
15 bash
16 exit $?
17 ;;
18 1,*)
19 exit 0
20 ;;
21 esac
22
23 ./autogen.sh
24 ./configure $LLDPD_CONFIG_ARGS --enable-pie CFLAGS="-O0 -g"
25 make all check CFLAGS=-Werror
26 make distcheck