Update .travis.yml

This commit is contained in:
Leonardo Zide 2020-11-23 09:53:41 -08:00 committed by GitHub
parent 6f30c412cd
commit 55303d6ea0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)