This repository has been archived by the owner on Sep 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
.travis.yml
40 lines (35 loc) · 1.75 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
language: cpp
compiler: gcc
sudo: required
dist: xenial
before_install:
- sudo add-apt-repository ppa:beineri/opt-qt-5.11.1-xenial -y
- sudo add-apt-repository ppa:kubuntu-ppa/backports -y
- sudo apt-get update -qq
install:
- sudo apt-get -y install libkf5dnssd-dev qt511base cmake
- source /opt/qt*/bin/qt*-env.sh
script:
- mkdir "cmake-build-release"
- cd "cmake-build-release"
- cmake -DCMAKE_BUILD_TYPE=Release -G "CodeBlocks - Unix Makefiles" ..
- cmake --build . --target trebleshot -- -j 2
# wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage"
# chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- chmod a+x linuxdeployqt-6-x86_64.AppImage
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
# export VERSION=... # linuxdeployqt uses this for naming the file
- cp ../assets/drawable/trebleshot.png trebleshot.png
# ./linuxdeployqt-continuous-x86_64.AppImage ../dist/trebleshot.desktop -appimage
- ./linuxdeployqt-6-x86_64.AppImage ../dist/trebleshot.desktop -appimage
after_success:
# find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq # for debugging
# curl --upload-file APPNAME*.AppImage https://transfer.sh/APPNAME-git.$(git rev-parse --short HEAD)-x86_64.AppImage
- wget -c https://gist.githubusercontent.com/velitasali/36a8a2fd1b32231c41804676fe626e90/raw/2c1daafc796591fffa494868c93515646188ceef/upload.sh
- bash upload.sh TrebleShot*.AppImage
branches:
except:
# Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/
- /^[0-9\.]*$/