From db5e0801388c70dfbff45ee94b15cf683074fe80 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 13 Mar 2018 20:44:51 +0100 Subject: travis: rename github-lambda to static --- .travis.yml | 2 +- .travis/targets/github-lambda.sh | 32 -------------------------------- .travis/targets/static.sh | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 33 deletions(-) delete mode 100644 .travis/targets/github-lambda.sh create mode 100644 .travis/targets/static.sh diff --git a/.travis.yml b/.travis.yml index 23cfa55..d081986 100644 --- a/.travis.yml +++ b/.travis.yml @@ -15,7 +15,7 @@ env: - TARGET=valgrind - TARGET=distcheck - TARGET=dist-srpm - - TARGET=github-lambda + - TARGET=static - TARGET=make-embedded - TARGET=win32 - TARGET=win64 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" ]] -} diff --git a/.travis/targets/static.sh b/.travis/targets/static.sh new file mode 100644 index 0000000..d0bb42f --- /dev/null +++ b/.travis/targets/static.sh @@ -0,0 +1,32 @@ +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" ]] +} -- cgit v1.2.3-18-g5258