mirror of
https://github.com/leozide/leocad
synced 2025-01-17 18:11:42 +01:00
Trying to fix commit check.
This commit is contained in:
parent
f59d3e6e72
commit
816db4e797
1 changed files with 4 additions and 5 deletions
|
@ -73,12 +73,11 @@ script:
|
||||||
|
|
||||||
after_success:
|
after_success:
|
||||||
- |
|
- |
|
||||||
GREP_PATH=grep;
|
export GREP_PATH=grep;
|
||||||
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then GREP_PATH=ggrep; fi
|
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then export GREP_PATH=ggrep; fi
|
||||||
curl -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master;
|
|
||||||
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt;
|
curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt;
|
||||||
REMOTE=$($GREP_PATH -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt);
|
export REMOTE=$($GREP_PATH -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt);
|
||||||
LOCAL=$(git rev-parse HEAD);
|
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."; exit 0; fi;
|
||||||
if [[ "$QT_BASE" = "510" && "$TRAVIS_OS_NAME" = "linux" ]]; then
|
if [[ "$QT_BASE" = "510" && "$TRAVIS_OS_NAME" = "linux" ]]; then
|
||||||
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||||
|
|
Loading…
Reference in a new issue