From 44a39a4b7927d318b62e40a5342f5f0813a48c39 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 6 Jan 2019 08:39:47 +0000 Subject: [PATCH] Generate AppImage and upload to GitHub Releases --- .travis.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index f2c022a7..c279074b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,12 +20,22 @@ install: before_script: - autoreconf -i script: - - ./configure + - ./configure --prefix=/usr - make clean - - build-wrapper-linux-x86-64 --out-dir bw-output make all + - build-wrapper-linux-x86-64 --out-dir bw-output make -j$(nproc) all - sonar-scanner + - make install DESTDIR=$(readlink -f appdir) ; find appdir/ + - wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage" + - chmod a+x linuxdeployqt-continuous-x86_64.AppImage + - export VERSION=$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file + - ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage -qmake=/usr/lib/x86_64-linux-gnu/qt5/bin/qmake after_success: - - sudo make install + - wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh + - bash upload.sh QPhotoRec*.AppImage* +branches: + except: + - # Do not build tags that we create when we upload to GitHub Releases + - /^(?i:continuous)/ cache: directories: - '$HOME/.sonar/cache'