mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Update .travis.yml
This commit is contained in:
parent
6f30c412cd
commit
55303d6ea0
1 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue