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

set -ex

rm -rf build
mkdir -p build

pushd build > /dev/null

export CFLAGS="-Wall -g -O0"

if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then
    export LDFLAGS="-static"
fi

../configure \
    --enable-ronn \
    --disable-silent-rules \
    --enable-tests \
    --enable-valgrind \
    --enable-git-receiver \
    --enable-runserver

popd > /dev/null

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

make -C build "${TARGET}"