-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
45 lines (40 loc) · 1.14 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
44
45
language: cpp
sudo: required
dist: xenial
os: linux
branches:
only:
- master
- /^v\d.*$/
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: "ppa:beineri/opt-qt-5.12.3-xenial"
packages:
- gcc-7
- g++-7
- qt512-meta-minimal
- libgl1-mesa-dev
script:
- export CC=gcc-7
- export CXX=g++-7
- QT_ENV_SCRIPT=$(find /opt -name 'qt*-env.sh')
- source $QT_ENV_SCRIPT
- mkdir build
- cd build
- cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DBUNDLE_LIBGIT2=ON ..
- make -j$(nproc)
- DESTDIR=install make install
- rm -rf install/usr/include
- 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 LD_LIBRARY_PATH=$(pwd)/install/usr/lib
- # export VERSION=...
- ./linuxdeployqt-continuous-x86_64.AppImage install/usr/share/applications/*.desktop -appimage
- mkdir out
- mv quokkagit*.AppImage out/
after_success:
- ls -lh out/*
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh out/*