diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-10 01:14:48 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-10 01:14:48 +0100 |
commit | 6e8e544cb8559aa5d8db72176c957e2513e3898a (patch) | |
tree | 995ad3176ebdbaa4b75c4dc1c938652f1a283ab3 /travis/targets/github-lambda.sh | |
parent | 68aa9e1b26b0af916423def6892de7fdb8a03048 (diff) | |
download | blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.tar.gz blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.tar.bz2 blogc-6e8e544cb8559aa5d8db72176c957e2513e3898a.zip |
travis: splitted scripts
Diffstat (limited to 'travis/targets/github-lambda.sh')
-rw-r--r-- | travis/targets/github-lambda.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/travis/targets/github-lambda.sh b/travis/targets/github-lambda.sh new file mode 100644 index 0000000..a92d586 --- /dev/null +++ b/travis/targets/github-lambda.sh @@ -0,0 +1,33 @@ +build() { + pushd build > /dev/null + ../configure \ + CFLAGS="-Wall -g -O0" \ + --enable-ronn \ + --disable-silent-rules \ + --enable-tests \ + --enable-valgrind \ + --enable-git-receiver \ + --enable-make-embedded \ + --enable-runserver + popd > /dev/null + + make -C build LDFLAGS="-all-static" blogc + + rm -rf build/root + mkdir -p build/root + + PV="$(grep PACKAGE_VERSION build/config.h | cut -d\" -f2)" + + install -m 755 build/blogc build/root/blogc + install -m 644 src/blogc-github-lambda/lambda_function.py build/root/lambda_function.py + install -m 644 LICENSE build/root/LICENSE + strip build/root/blogc + + pushd build/root/ > /dev/null + zip -rq "../blogc-github-lambda-${PV}.zip" * + popd > /dev/null +} + +deploy() { + FILES=( build/*.zip ) +} |