-
Notifications
You must be signed in to change notification settings - Fork 9
/
.travis.yml
68 lines (61 loc) · 1.97 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
dist: trusty
sudo: required
language:
- cpp
compiler:
- gcc
#addons:
# apt:
# sources: ['ubuntu-toolchain-r-test']
# packages:
# - gcc-6
# - g++-6
install:
- sudo apt-get install qt4-qmake build-essential g++
# - sudo apt-get install libboost-all-dev
- sudo apt-get install libsndfile1-dev qt4-default libfftw3-dev portaudio19-dev
- sudo apt-get install libfaad-dev zlib1g-dev libusb-1.0-0-dev mesa-common-dev
- sudo apt-get install libgl1-mesa-dev libqt4-opengl-dev libsamplerate-dev libqwt-dev
- wget -O boost_1_64_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.64.0/boost_1_64_0.tar.gz/download
- tar xzf boost_1_64_0.tar.gz
- cd ./boost_1_64_0
- mkdir boost_build
- ./bootstrap.sh --prefix=`pwd`/boost_build --with-libraries=filesystem,system
- ./b2 install
- cd ..
- export CPLUS_INCLUDE_PATH=`pwd`/boost_1_64_0/
- export LD_LIBRARY_PATH=`pwd`/boost_1_64_0/boost_build/lib
- export LIBRARY_PATH=`pwd`/boost_1_64_0/boost_build/lib
script:
# Building
- cd src
- qmake PREFIX=/usr
- make -j$(nproc)
- mkdir appdir
- make INSTALL_ROOT=appdir install ; find appdir/
- cd ..
- 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
- unset QTDIR; unset QT_PLUGIN_PATH
- ls ./deploy/*.desktop
# - cp ./src/resources/images/application/jag.png
- ./linuxdeployqt*.AppImage ./deploy/*.desktop -bundle-non-qt-libs
- ./linuxdeployqt*.AppImage ./deploy/*.desktop -appimage
- ls ./deploy
- ls .
after_success:
- ls ./*.AppImage
- curl --upload-file ./jag*.AppImage https://transfer.sh/APPNAME-git.$(git rev-parse --short HEAD)-x86_64.AppImage
deploy:
provider: releases
api_key: '$GITHUB_API_KEY'
file: 'jag-x86_64.AppImage'
skip_cleanup: true
on:
tags: true
all_branches: true
# on:
# tags
# on:
# branch: dev