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

set -ex

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

popd > /dev/null

if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then
    make -C build LDFLAGS="-all-static" "${TARGET}"
else
    make -C build "${TARGET}"
fi