From 8cac2c3e3a61b64b9a9855dec413239bcec7f9d2 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 27 Dec 2016 02:29:54 +0100 Subject: make: implemented a build tool for blogc so, this is basically what happens when you don't have anything better to do in the christmas weekend. most of this code was written in the last 2 or 3 days. i'd like to thank the chivas brothers, the weather and my psychological problems for this achievement. on a serious note, this tool still needs a man page, more tests, and the aws lambda function should be adapted to use it instead of (or together with) make/busybox. also, while talking about aws lambda, this tool can be nicely embedded into the blogc binary, to produce a single "small" static binary for usage in lambda ;) --- build-aux/travis-build-github-lambda.sh | 3 ++- build-aux/travis-build.sh | 9 ++++++++- build-aux/travis-deploy.sh | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) (limited to 'build-aux') diff --git a/build-aux/travis-build-github-lambda.sh b/build-aux/travis-build-github-lambda.sh index 711ed79..6a46c05 100755 --- a/build-aux/travis-build-github-lambda.sh +++ b/build-aux/travis-build-github-lambda.sh @@ -24,7 +24,8 @@ pushd build > /dev/null --disable-tests \ --disable-valgrind \ --disable-git-receiver \ - --disable-runserver + --disable-runserver \ + --enable-make-embedded popd > /dev/null make -C build LDFLAGS="-all-static" blogc diff --git a/build-aux/travis-build.sh b/build-aux/travis-build.sh index 70b2475..8725a0b 100755 --- a/build-aux/travis-build.sh +++ b/build-aux/travis-build.sh @@ -7,6 +7,12 @@ if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then exit $? fi +MAKE_CONFIGURE="--enable-make" +if [[ "x${TARGET}" = "xblogc-make-embedded" ]]; then + MAKE_CONFIGURE="--enable-make-embedded" + TARGET="check" +fi + rm -rf build mkdir -p build @@ -18,7 +24,8 @@ pushd build > /dev/null --enable-tests \ --enable-valgrind \ --enable-git-receiver \ - --enable-runserver + --enable-runserver \ + ${MAKE_CONFIGURE} popd > /dev/null make -C build "${TARGET}" diff --git a/build-aux/travis-deploy.sh b/build-aux/travis-deploy.sh index def5e9b..07248a2 100755 --- a/build-aux/travis-deploy.sh +++ b/build-aux/travis-deploy.sh @@ -12,7 +12,7 @@ if [[ "x${TRAVIS_BRANCH}" != "xmaster" ]] && [[ "x${TRAVIS_TAG}" != xv* ]]; then exit 0 fi -if [[ "x${CC}" != "xgcc" ]] || [[ "x${TARGET}" = "xvalgrind" ]]; then +if [[ "x${CC}" != "xgcc" ]] || [[ "x${TARGET}" = "xvalgrind" ]] || [[ "x${TARGET}" = "xblogc-make-embedded"; then echo "Invalid target for deploy. skipping ..." exit 0 fi -- cgit v1.2.3-18-g5258