diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-10 01:21:49 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2017-02-10 01:21:49 +0100 |
commit | ba25922f737076fbcdbd81a01ce91240dca749db (patch) | |
tree | 96ecafecd5764ee91141dc99f5c54af218ac0c92 /.travis/targets | |
parent | b4b034d43b81e7f7febc337cc4d0abe114e3bfb5 (diff) | |
download | blogc-ba25922f737076fbcdbd81a01ce91240dca749db.tar.gz blogc-ba25922f737076fbcdbd81a01ce91240dca749db.tar.bz2 blogc-ba25922f737076fbcdbd81a01ce91240dca749db.zip |
travis: removed travis dir to .travis
Diffstat (limited to '.travis/targets')
-rw-r--r-- | .travis/targets/dist-srpm.sh | 19 | ||||
-rw-r--r-- | .travis/targets/distcheck.sh | 19 | ||||
-rw-r--r-- | .travis/targets/github-lambda.sh | 33 | ||||
-rw-r--r-- | .travis/targets/make-embedded.sh | 15 | ||||
-rw-r--r-- | .travis/targets/valgrind.sh | 15 |
5 files changed, 101 insertions, 0 deletions
diff --git a/.travis/targets/dist-srpm.sh b/.travis/targets/dist-srpm.sh new file mode 100644 index 0000000..87858c6 --- /dev/null +++ b/.travis/targets/dist-srpm.sh @@ -0,0 +1,19 @@ +build() { + pushd build > /dev/null + ../configure \ + CFLAGS="-Wall -g -O0" \ + --disable-silent-rules \ + --enable-ronn \ + --enable-tests \ + --enable-valgrind \ + --enable-git-receiver \ + --enable-make \ + --enable-runserver + popd > /dev/null + + make -C build dist-srpm +} + +deploy() { + FILES=( build/*.src.rpm ) +} diff --git a/.travis/targets/distcheck.sh b/.travis/targets/distcheck.sh new file mode 100644 index 0000000..06a0ba3 --- /dev/null +++ b/.travis/targets/distcheck.sh @@ -0,0 +1,19 @@ +build() { + pushd build > /dev/null + ../configure \ + CFLAGS="-Wall -g -O0" \ + --disable-silent-rules \ + --enable-ronn \ + --enable-tests \ + --enable-valgrind \ + --enable-git-receiver \ + --enable-make \ + --enable-runserver + popd > /dev/null + + make -C build distcheck +} + +deploy() { + FILES=( build/*.{*.tar.{gz,bz2,xz},zip} ) +} 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 ) +} diff --git a/.travis/targets/make-embedded.sh b/.travis/targets/make-embedded.sh new file mode 100644 index 0000000..b2d3f80 --- /dev/null +++ b/.travis/targets/make-embedded.sh @@ -0,0 +1,15 @@ +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 check +} diff --git a/.travis/targets/valgrind.sh b/.travis/targets/valgrind.sh new file mode 100644 index 0000000..7870ec1 --- /dev/null +++ b/.travis/targets/valgrind.sh @@ -0,0 +1,15 @@ +build() { + pushd build > /dev/null + ../configure \ + CFLAGS="-Wall -g -O0" \ + --disable-silent-rules \ + --enable-ronn \ + --enable-tests \ + --enable-valgrind \ + --enable-git-receiver \ + --enable-make \ + --enable-runserver + popd > /dev/null + + make -C build valgrind +} |