aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/travis-build.sh
blob: 8725a0b9eea156eb477a49dc9da1a494d4eb009c (plain)
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
#!/bin/bash

set -ex

if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then
    build-aux/travis-build-github-lambda.sh
    exit $?
fi

MAKE_CONFIGURE="--enable-make"
if [[ "x${TARGET}" = "xblogc-make-embedded" ]]; then
    MAKE_CONFIGURE="--enable-make-embedded"
    TARGET="check"
fi

rm -rf build
mkdir -p build

pushd build > /dev/null
../configure \
    CFLAGS="-Wall -g -O0" \
    --enable-ronn \
    --disable-silent-rules \
    --enable-tests \
    --enable-valgrind \
    --enable-git-receiver \
    --enable-runserver \
    ${MAKE_CONFIGURE}
popd > /dev/null

make -C build "${TARGET}"