aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/targets
diff options
context:
space:
mode:
Diffstat (limited to '.travis/targets')
-rw-r--r--.travis/targets/dist-srpm.sh19
-rw-r--r--.travis/targets/distcheck.sh19
-rw-r--r--.travis/targets/github-lambda.sh33
-rw-r--r--.travis/targets/make-embedded.sh15
-rw-r--r--.travis/targets/valgrind.sh15
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
+}