aboutsummaryrefslogtreecommitdiffstats
path: root/.travis/targets/win64.sh
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-13 20:22:51 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2018-03-13 20:22:51 +0100
commit3fe932d237e90a0beb8b1b5f1008d5cf0b9b4952 (patch)
tree3398a5147c0793054a72dcb81475c0e880708f7c /.travis/targets/win64.sh
parentbc1c0a563edbaaa639ebd5741d3c0f8144e5bb8f (diff)
downloadblogc-3fe932d237e90a0beb8b1b5f1008d5cf0b9b4952.tar.gz
blogc-3fe932d237e90a0beb8b1b5f1008d5cf0b9b4952.tar.bz2
blogc-3fe932d237e90a0beb8b1b5f1008d5cf0b9b4952.zip
travis: reworked test runner
Diffstat (limited to '.travis/targets/win64.sh')
-rw-r--r--.travis/targets/win64.sh33
1 files changed, 12 insertions, 21 deletions
diff --git a/.travis/targets/win64.sh b/.travis/targets/win64.sh
index 47d82ee..e6c4199 100644
--- a/.travis/targets/win64.sh
+++ b/.travis/targets/win64.sh
@@ -1,39 +1,30 @@
build() {
- unset CC
- pushd build > /dev/null
- ../configure \
+ 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 \
- --enable-ronn \
- --disable-silent-rules \
--disable-tests \
- --disable-valgrind \
--disable-git-receiver \
- --disable-make-embedded \
+ --disable-make \
--disable-runserver
- popd > /dev/null
+ make blogc.exe
- make -C build blogc.exe
-
- PN="$(grep PACKAGE_TARNAME build/config.h | cut -d\" -f2)"
- PV="$(grep PACKAGE_VERSION build/config.h | cut -d\" -f2)"
+ PN="$(grep PACKAGE_TARNAME config.h | cut -d\" -f2)"
+ PV="$(grep PACKAGE_VERSION config.h | cut -d\" -f2)"
DEST_DIR="${PN}-${PV}-${TARGET}"
rm -rf "${DEST_DIR}"
mkdir -p "${DEST_DIR}"
- cp build/.libs/blogc.exe "${DEST_DIR}/"
- cp LICENSE "${DEST_DIR}/"
- cp README.md "${DEST_DIR}/"
-
- zip "build/${DEST_DIR}.zip" "${DEST_DIR}"/*
-}
+ cp .libs/blogc.exe "${DEST_DIR}/"
+ cp ../LICENSE "${DEST_DIR}/"
+ cp ../README.md "${DEST_DIR}/"
-deploy_cond() {
- [[ "x${CC}" = "xgcc" ]]
+ zip "${DEST_DIR}.zip" "${DEST_DIR}"/*
}
deploy() {
- FILES=( build/*.zip )
+ FILES=( *.zip )
+ [[ ${RV} -eq 0 ]] && [[ "x${CC}" = "xgcc" ]]
}