forked from damaxi/wordflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (39 loc) · 1.44 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
36
37
38
39
40
41
42
43
language: cpp
dist: trusty
compiler: g++
sudo: required
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt58-trusty -y
- sudo apt-get update
install:
- sudo apt-get install qt58base
- sudo apt-get install qt58charts-no-lgpl
- sudo apt-get install qt58quickcontrols2
- sudo apt-get install qt58location
- sudo apt-get install qt58declarative
- sudo apt-get install checkinstall
- source /opt/qt58/bin/qt58-env.sh
script:
- qmake PREFIX=/usr
- make
- ./tests/unittest
- sudo checkinstall --pkgname=app --pkgversion="1" --pkgrelease="1" --backup=no --fstrans=no --default --deldoc
- mkdir -p AppDir/usr/bin ; cd AppDir
- dpkg -x ../app_1-1_amd64.deb . ; find .
- mv ./usr/local/bin/* ./usr/bin/
- cp ./usr/share/icons/hicolor/48x48/apps/wordflow.png .
- cp ./usr/share/applications/wordflow.desktop .
- cd ..
- wget -c https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
- chmod a+x linuxdeployqt*.AppImage
- ./linuxdeployqt*.AppImage ./AppDir/usr/bin/* -bundle-non-qt-libs -qmldir=./app
- ./linuxdeployqt*.AppImage ./AppDir/usr/bin/* -appimage
- curl --upload-file ./WordFlow*.AppImage https://transfer.sh/WordFlow-git.$(git rev-parse --short HEAD)-x86_64.AppImage
notifications:
email: false
webhooks:
urls:
- https://webhooks.gitter.im/e/bfdf77026eb0b6eef83b
on_success: change
on_failure: always
on_start: never