aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/targets/github-lambda.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-13 20:44:51 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-13 20:44:51 +0100
commitdb5e0801388c70dfbff45ee94b15cf683074fe80 (patch)
treef5ffb6944ac57258840c66b69932387a350857d5 /.travis/targets/github-lambda.sh
parentf18b9835e59a5c5ebcfd250c41a692b3fae9dd6d (diff)
downloadblogc-db5e0801388c70dfbff45ee94b15cf683074fe80.tar.gz
blogc-db5e0801388c70dfbff45ee94b15cf683074fe80.tar.bz2
blogc-db5e0801388c70dfbff45ee94b15cf683074fe80.zip
travis: rename github-lambda to static
Diffstat (limited to '.travis/targets/github-lambda.sh')
-rw-r--r--.travis/targets/github-lambda.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/.travis/targets/github-lambda.sh b/.travis/targets/github-lambda.sh
deleted file mode 100644
index d0bb42f..0000000
--- a/.travis/targets/github-lambda.sh
+++ /dev/null
@@ -1,32 +0,0 @@
-build() {
- default_configure \
- CFLAGS="-Wall -g -O2" \
- --disable-tests \
- --disable-git-receiver \
- --disable-runserver \
- --enable-make-embedded
-
- make LDFLAGS="-all-static" blogc
-
- rm -rf root
- mkdir -p root
-
- PV="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
-
- install -m 755 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 "../blogc-github-lambda-${PV}.zip" *
- popd > /dev/null
-
- install -m 755 root/blogc "blogc-static-amd64-${PV}"
- xz -z "blogc-static-amd64-${PV}"
-}
-
-deploy() {
- FILES=( *.zip blogc-static-*.xz )
- [[ ${RV} -eq 0 ]] && [[ "x${CC}" = "xgcc" ]]
-}