-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
35 lines (29 loc) · 1.38 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
language: cpp
os: linux
dist: trusty
sudo: required
compiler: gcc
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-trusty -y
- sudo apt-get update -qq
install:
- sudo apt-get install -qq qt510base qt510x11extras qt510svg
- source /opt/qt510/bin/qt510-env.sh
script:
- qmake CONFIG+=release PREFIX=/usr
- make -j$(nproc)
- mkdir -p appdir/usr/bin ; strip hidpi-fixer ; cp hidpi-fixer ./appdir/usr/bin/
- mkdir -p appdir/usr/share/applications ; cp deploy/linux/hidpi-fixer.desktop ./appdir/usr/share/applications/
- mkdir -p appdir/usr/share/pixmaps ; cp deploy/linux/hidpi-fixer.png ./appdir/usr/share/pixmaps
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
- export VERSION=$(git rev-parse --short HEAD)
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -bundle-non-qt-libs
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage
after_success:
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh HiDPI*.AppImage*
notifications:
email: false