aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/travis-build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/travis-build.sh')
-rwxr-xr-xbuild-aux/travis-build.sh48
1 files changed, 0 insertions, 48 deletions
diff --git a/build-aux/travis-build.sh b/build-aux/travis-build.sh
deleted file mode 100755
index 223d145..0000000
--- a/build-aux/travis-build.sh
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-set -ex
-
-MAKE_CONFIGURE="--enable-make"
-if [[ "x${TARGET}" = "xblogc-make-embedded" ]]; then
- MAKE_CONFIGURE="--enable-make-embedded"
- TARGET="check"
-fi
-if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then
- MAKE_CONFIGURE="--enable-make-embedded"
-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
-
-if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then
- make -C build LDFLAGS="-all-static" blogc
-
- rm -rf root
- mkdir -p root
-
- PV="$(grep PACKAGE_VERSION build/config.h | cut -d\" -f2)"
-
- install -m 755 build/blogc root/blogc
- install -m 644 src/blogc-github-lambda/lambda_function.py root/lambda_function.py
- install -m 644 LICENSE root/LICENSE
- strip root/blogc
-
- pushd root/ > /dev/null
- zip --symlinks -rq "../blogc-github-lambda-${PV}.zip" *
- popd > /dev/null
-else
- make -C build "${TARGET}"
-fi