Update .travis.yml

This commit is contained in:
Leonardo Zide 2020-11-07 10:54:23 -08:00 committed by GitHub
parent 5cd5fda576
commit 42d8826da5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,10 +35,10 @@ jobs:
- make -j$(nproc) - make -j$(nproc)
after_success: after_success:
- make install INSTALL_ROOT=AppDir - make install INSTALL_ROOT=AppDir
- wget https://github.com/leozide/leocad/releases/download/v19.07.1/Library-Linux-14384.zip -O library.zip; - wget https://github.com/leozide/leocad/releases/download/v19.07.1/Library-Linux-14384.zip -O library.zip
- unzip library.zip; - unzip library.zip
- mkdir -p AppDir/usr/share/leocad; - mkdir -p AppDir/usr/share/leocad
- mv library.bin AppDir/usr/share/leocad/library.bin; - mv library.bin AppDir/usr/share/leocad/library.bin
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" - wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt*.AppImage - chmod a+x linuxdeployqt*.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH - unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
@ -49,7 +49,7 @@ jobs:
- ./squashfs-root/usr/bin/appimagetool AppDir/ - ./squashfs-root/usr/bin/appimagetool AppDir/
- mv ./LeoCAD-$VERSION-x86_64.AppImage ./LeoCAD-Linux-$VERSION-x86_64.AppImage - mv ./LeoCAD-$VERSION-x86_64.AppImage ./LeoCAD-Linux-$VERSION-x86_64.AppImage
- "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"
- export REMOTE=$(grep -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt) - "export REMOTE=$(grep -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt)"
- export 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
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
@ -95,7 +95,7 @@ jobs:
- mv LeoCAD.dmg LeoCAD-macOS-$(git rev-parse --short HEAD).dmg - mv LeoCAD.dmg LeoCAD-macOS-$(git rev-parse --short HEAD).dmg
after_success: after_success:
- "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"
- export REMOTE=$(ggrep -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt) - "export REMOTE=$(ggrep -Po '(?<=: \")(([a-z0-9])\w+)(?=\")' -m 1 repo.txt)"
- export 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
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh