Browse Source

Use continuous build of linuxdeployqt and upload to GitHub Releases

master
probonopd 9 years ago
committed by GitHub
parent
commit
6ae2091eb2
  1. 28
      .travis.yml

28
.travis.yml

@ -7,17 +7,14 @@ os: linux
before_install: before_install:
- sudo add-apt-repository --yes ppa:beineri/opt-qt57-trusty - sudo add-apt-repository --yes ppa:beineri/opt-qt57-trusty
- sudo apt-get update -qq - sudo apt-get update -qq
- wget https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.bz2 - git clone https://github.com/NixOS/patchelf.git
- tar xf patchelf-0.9.tar.bz2 - cd patchelf
- cd patchelf-*/ - bash ./bootstrap.sh
- ./configure - ./configure
- make -j2 - make -j7
- sudo make install - sudo make install
- cd - - cd -
- ID=$(wget -q https://api.travis-ci.org/repos/probonopd/appimagetool/builds -O - | head -n 1 | sed -e 's|}|\n|g' | grep '"result":0' | head -n 1 | sed -e 's|,|\n|g' | grep '"id"' | cut -d ":" -f 2) - sudo wget -c "https://github.com/probonopd/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage" -O /usr/local/bin/appimagetool
- URL=$(wget -q "http://archive.travis-ci.org/jobs/$((ID+1))/log.txt" -O - | grep -o "https://transfer.sh/.*/appimagetool" | tail -n 1 | sed -e 's|\r||g')
- if [ -z "$URL" ] ; then URL=$(wget -q "http://archive.travis-ci.org/jobs/$((ID+2))/log.txt" -O - | grep -o "https://transfer.sh/.*/appimagetool" | tail -n 1 | sed -e 's|\r||g') ; fi
- sudo wget -c "$URL" -O /usr/local/bin/appimagetool
- sudo chmod a+x /usr/local/bin/appimagetool - sudo chmod a+x /usr/local/bin/appimagetool
install: install:
@ -30,8 +27,15 @@ script:
- mkdir -p linuxdeployqt.AppDir/usr/bin/ - mkdir -p linuxdeployqt.AppDir/usr/bin/
- cp /usr/local/bin/patchelf linuxdeployqt.AppDir/usr/bin/ - cp /usr/local/bin/patchelf linuxdeployqt.AppDir/usr/bin/
- cp /usr/local/bin/appimagetool linuxdeployqt.AppDir/usr/bin/ - cp /usr/local/bin/appimagetool linuxdeployqt.AppDir/usr/bin/
- cp ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/linuxdeployqt - cp ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/usr/bin/linuxdeployqt
- export VERSION=$(git describe --always) - find linuxdeployqt.AppDir/
- ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/linuxdeployqt -verbose=3 -appimage - export VERSION=continuous
- ./linuxdeployqt/linuxdeployqt linuxdeployqt.AppDir/usr/bin/linuxdeployqt -verbose=3 -appimage
- ls -lh - ls -lh
- curl --upload-file ./linuxdeployqt-*.AppImage https://transfer.sh/linuxdeployqt-$VERSION-x86_64.appimage - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash ./upload.sh ./linuxdeployqt-*.AppImage
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/

Loading…
Cancel
Save