aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/targets/static.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-05-07 00:13:44 +0200
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-05-07 00:13:44 +0200
commit9543748bda8bfcad015243a9d312cf203431b29f (patch)
tree29455f665fe933cd76ac6c1c90b9916898f9050d /.travis/targets/static.sh
parent0a7f6a2659b363e1d68202b9fd863b57f7420f4f (diff)
downloadblogc-9543748bda8bfcad015243a9d312cf203431b29f.tar.gz
blogc-9543748bda8bfcad015243a9d312cf203431b29f.tar.bz2
blogc-9543748bda8bfcad015243a9d312cf203431b29f.zip
build: use yatr
Diffstat (limited to '.travis/targets/static.sh')
-rw-r--r--.travis/targets/static.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/.travis/targets/static.sh b/.travis/targets/static.sh
deleted file mode 100644
index d252860..0000000
--- a/.travis/targets/static.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
-
- local 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" ]]
-}