aboutsummaryrefslogtreecommitdiffstats
path: root/build-aux/travis-build.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-10 01:14:48 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-10 01:14:48 +0100
commit6e8e544cb8559aa5d8db72176c957e2513e3898a (patch)
tree995ad3176ebdbaa4b75c4dc1c938652f1a283ab3 /build-aux/travis-build.sh
parent68aa9e1b26b0af916423def6892de7fdb8a03048 (diff)
downloadblogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.tar.gz
blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.tar.bz2
blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.zip
travis: splitted scripts
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