aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/targets
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
parent0a7f6a2659b363e1d68202b9fd863b57f7420f4f (diff)
downloadblogc-9543748bda8bfcad015243a9d312cf203431b29f.tar.gz
blogc-9543748bda8bfcad015243a9d312cf203431b29f.tar.bz2
blogc-9543748bda8bfcad015243a9d312cf203431b29f.zip
build: use yatr
Diffstat (limited to '.travis/targets')
-rw-r--r--.travis/targets/clang-analyzer.sh42
-rw-r--r--.travis/targets/dist-srpm.sh9
-rw-r--r--.travis/targets/distcheck.sh9
-rw-r--r--.travis/targets/make-embedded.sh5
-rw-r--r--.travis/targets/static.sh32
-rw-r--r--.travis/targets/valgrind.sh5
-rw-r--r--.travis/targets/win32.sh30
-rw-r--r--.travis/targets/win64.sh30
8 files changed, 0 insertions, 162 deletions
diff --git a/.travis/targets/clang-analyzer.sh b/.travis/targets/clang-analyzer.sh
deleted file mode 100644
index 31cd522..0000000
--- a/.travis/targets/clang-analyzer.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-build() {
- default_configure \
- --enable-silent-rules \
- --disable-tests
-
- local pn="$(grep PACKAGE_TARNAME config.h | cut -d\" -f2)"
- local pv="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
- local p="${pn}-clang-analyzer-${pv}"
-
- set +e
- scan-build \
- --use-cc="${CC}" \
- -o reports \
- make
- local rv=$?
- set -e
-
- local num_reports=$(ls -1 reports | wc -l)
- [[ ${num_reports} -eq 0 ]] && return ${rv}
- [[ ${num_reports} -eq 1 ]]
-
- local reports="reports/$(ls -1 reports)"
-
- if [[ -d "${reports}" ]]; then
- mv "${reports}" clang-analyzer
- tar \
- -cvJf "${p}.tar.xz" \
- clang-analyzer
- rv=1
- fi
-
- return ${rv}
-}
-
-deploy() {
- FILES=( *.tar.xz )
- [[ ${RV} -ne 0 ]] && [[ "x${CC}" = "xclang" ]]
-}
-
-extract() {
- grep .
-}
diff --git a/.travis/targets/dist-srpm.sh b/.travis/targets/dist-srpm.sh
deleted file mode 100644
index aa4e9e8..0000000
--- a/.travis/targets/dist-srpm.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-build() {
- default_configure
- make dist-srpm
-}
-
-deploy() {
- FILES=( *.src.rpm )
- [[ ${RV} -eq 0 ]] && [[ "x${CC}" = "xgcc" ]]
-}
diff --git a/.travis/targets/distcheck.sh b/.travis/targets/distcheck.sh
deleted file mode 100644
index e1cd9c5..0000000
--- a/.travis/targets/distcheck.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-build() {
- default_configure
- make distcheck
-}
-
-deploy() {
- FILES=( *.{*.tar.{gz,bz2,xz},zip} )
- [[ ${RV} -eq 0 ]] && [[ "x${CC}" = "xgcc" ]]
-}
diff --git a/.travis/targets/make-embedded.sh b/.travis/targets/make-embedded.sh
deleted file mode 100644
index d83c88a..0000000
--- a/.travis/targets/make-embedded.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-build() {
- default_configure \
- --enable-make-embedded
- make check
-}
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" ]]
-}
diff --git a/.travis/targets/valgrind.sh b/.travis/targets/valgrind.sh
deleted file mode 100644
index 55d3faa..0000000
--- a/.travis/targets/valgrind.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-build() {
- default_configure \
- --enable-valgrind
- make valgrind
-}
diff --git a/.travis/targets/win32.sh b/.travis/targets/win32.sh
deleted file mode 100644
index 1a6745f..0000000
--- a/.travis/targets/win32.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-build() {
- default_configure \
- CC= \
- CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" \
- --host=i686-w64-mingw32 \
- --target=i686-w64-mingw32 \
- --disable-tests \
- --disable-git-receiver \
- --disable-make \
- --disable-runserver
- make blogc.exe
-
- local pn="$(grep PACKAGE_TARNAME config.h | cut -d\" -f2)"
- local pv="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
- local dest_dir="${pn}-${pv}-${TARGET}"
-
- rm -rf "${dest_dir}"
- mkdir -p "${dest_dir}"
-
- cp .libs/blogc.exe "${dest_dir}/"
- cp ../LICENSE "${dest_dir}/"
- cp ../README.md "${dest_dir}/"
-
- zip "${dest_dir}.zip" "${dest_dir}"/*
-}
-
-deploy() {
- FILES=( *.zip )
- [[ ${RV} -eq 0 ]] && [[ "x${CC}" = "xgcc" ]]
-}
diff --git a/.travis/targets/win64.sh b/.travis/targets/win64.sh
deleted file mode 100644
index c9fed2c..0000000
--- a/.travis/targets/win64.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-build() {
- default_configure \
- CC= \
- CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4" \
- --host=x86_64-w64-mingw32 \
- --target=x86_64-w64-mingw32 \
- --disable-tests \
- --disable-git-receiver \
- --disable-make \
- --disable-runserver
- make blogc.exe
-
- local pn="$(grep PACKAGE_TARNAME config.h | cut -d\" -f2)"
- local pv="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
- local dest_dir="${pn}-${pv}-${TARGET}"
-
- rm -rf "${dest_dir}"
- mkdir -p "${dest_dir}"
-
- cp .libs/blogc.exe "${dest_dir}/"
- cp ../LICENSE "${dest_dir}/"
- cp ../README.md "${dest_dir}/"
-
- zip "${dest_dir}.zip" "${dest_dir}"/*
-}
-
-deploy() {
- FILES=( *.zip )
- [[ ${RV} -eq 0 ]] && [[ "x${CC}" = "xgcc" ]]
-}