-
Notifications
You must be signed in to change notification settings - Fork 2
/
.travis.yml
46 lines (41 loc) · 1.23 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
language: cpp
sudo: required
dist: trusty
notifications:
email: false
addons:
apt:
sources:
- sourceline: 'ppa:beineri/opt-qt-5.10.1-trusty'
update: true
packages:
- gcc
- g++
- qt510-meta-minimal
- qt510declarative
- qt510webengine
- qt510svg
- qt510imageformats
- mesa-common-dev
- cmake
install:
- export QT_PREFIX=/opt/qt510
- mkdir -p $HOME/.config/qtchooser
- echo "${QT_PREFIX}/bin" > $HOME/.config/qtchooser/qt5.10.conf
- echo "${QT_PREFIX}/lib" >> $HOME/.config/qtchooser/qt5.10.conf
script:
- $QT_PREFIX/bin/qt510-env.sh
- export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${QT_PREFIX}/lib"
- export CMAKE_PREFIX_PATH=$QT_PREFIX/lib/cmake
- export QT_SELECT=qt5.10
- bash -xe build_appimages.sh
after_success:
- ls -lh
# make sure only pushes to rewrite create a new release, otherwise pretend PR and upload to transfer.sh
- if [ "$TRAVIS_BRANCH" != "master" ]; then export TRAVIS_EVENT_TYPE=pull_request; fi
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh /home/travis/build/linuxdeploy/linuxdeploy-plugin-qt-examples/out/*.AppImage*
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)$/