From 55303d6ea0acc02229d132feb35b334ebdf3b903 Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Mon, 23 Nov 2020 09:53:41 -0800 Subject: [PATCH] Update .travis.yml --- .travis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 6f29be0a..b02a2c53 100644 --- a/.travis.yml +++ b/.travis.yml @@ -72,13 +72,14 @@ jobs: - qmake -v - qmake PREFIX=/usr - make -j$(nproc) + after_success: - cp build/release/leocad . - export VERSION=$(git rev-parse --short HEAD) - zip LeoCAD-Linux-$VERSION-arm64.zip leocad - 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt' - 'export REMOTE=$(grep -Po ''(?<=: \")(([a-z0-9])\w+)(?=\")'' -m 1 repo.txt)' - export LOCAL=$(git rev-parse HEAD) - - if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; exit 0; fi; + - if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; travis_terminate 0; fi; - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh - bash upload.sh LeoCAD*.zip @@ -100,10 +101,10 @@ jobs: - qmake -v - qmake - make -j$(sysctl -n hw.ncpu) + after_success: - cd build/release - macdeployqt LeoCAD.app -dmg - mv LeoCAD.dmg LeoCAD-macOS-$(git rev-parse --short HEAD).dmg - after_success: - 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt' - 'export REMOTE=$(ggrep -Po ''(?<=: \")(([a-z0-9])\w+)(?=\")'' -m 1 repo.txt)' - export LOCAL=$(git rev-parse HEAD)