Skip to content

Commit

Permalink
Make travis fail fast and add workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
tcuje committed Mar 9, 2019
1 parent f114fad commit 4439456
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,23 +68,19 @@ install:
fi

script:
- set -e
- qmake PREFIX=/usr -v
- qmake PREFIX=/usr -r
- make -j4
- if [ "$TRAVIS_OS_NAME" != "linux" ] ; then exit 0 ; fi
- sudo apt-get -y install checkinstall
- rm ./*.spec # Otherwise the next line fails
- sudo checkinstall --pkgname=app --pkgversion="1" --pkgrelease="1" --backup=no --fstrans=no --default --deldoc
- mkdir appdir ; cd appdir
- dpkg -x ../app_1-1_amd64.deb . ; find .
- cp ../qt/leocad.desktop .
- sed -i -e 's|\.svg||g' leocad.desktop # Workaround
- cp ../resources/leocad.png .
- cd ..
- make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/
- sed -i -e 's|.svg||g' appdir/usr/share/applications/leocad.desktop # FIXME; .svg should not be in the desktop file to begin with
- wget -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt*.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- ./linuxdeployqt*.AppImage ./appdir/usr/bin/leocad -bundle-non-qt-libs -verbose=2
- ./linuxdeployqt*.AppImage ./appdir/usr/bin/leocad -appimage -verbose=2
- curl --upload-file ./LeoCAD-*.AppImage https://transfer.sh/LeoCAD-git.$(git rev-parse --short HEAD).qt$QT_BASE-x86_64.AppImage

- ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs
- ./linuxdeployqt*.AppImage --appimage-extract
- export PATH=$(readlink -f ./squashfs-root/usr/bin/):$PATH
- ./squashfs-root/usr/bin/appimagetool appdir/
- curl --upload-file ./LeoCAD-*.AppImage https://transfer.sh/LeoCAD-git.$(git rev-parse --short HEAD).qt$QT_BASE-x86_64.AppImage

0 comments on commit 4439456

Please sign in to comment.