-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
.travis.yml
56 lines (46 loc) · 1.92 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
# language target
language: cpp
compiler: gcc
# main build matrix
matrix:
include:
- name: "Bionic Ubuntu Linux"
os: linux
dist: bionic
sudo: required
install:
- curl https://origin.archive.neon.kde.org/public.key | sudo apt-key add -
- echo "deb http://archive.neon.kde.org/user bionic main" | sudo tee -a /etc/apt/sources.list.d/neon.list
- sudo apt update -y
- sudo apt install -y build-essential g++ qt5-default libqt5opengl5-dev qtdeclarative5-dev qtmultimedia5-dev libqt5multimedia5-plugins libqt5qml5 libqt5quickwidgets5 qml-module-qtquick2 qml-module-qtquick-dialogs qml-module-qtmultimedia
# Install appimage-builder toolchain
- sudo apt install -y build-essential python3 python3-setuptools python3-pip patchelf gnupg2 file desktop-file-utils fakeroot
- sudo pip3 install git+https://github.com/AppImageCrafters/appimage-builder.git
# Install appimagetool
- wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /tmp/appimagetool
- chmod +x /tmp/appimagetool
- sudo mv /tmp/appimagetool /usr/bin
# build & test scripts
script:
- qmake CONFIG+=release PREFIX=/usr ./mystiq.pro
- make -j$(nproc)
- INSTALL_ROOT=${PWD}/AppDir make install
- cp icons/mystiq.svg AppDir/usr/share/icons
- export VERSION="$TRAVIS_BRANCH-$(git describe --tags --exact-match HEAD 2> /dev/null)-$TRAVIS_BUILD_NUMBER"
- appimage-builder --skip-test
# notifications (only via telegram)
notifications:
email: true
#webhooks: https://fathomless-fjord-24024.herokuapp.com/notify
# make the AppImage bundle
after_success:
# listing the result
- ls -lh *.AppImage
# get the tag version
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- export GITHUB_TOKEN="$OAUTHTOKEN"
- bash upload.sh MystiQ*.AppImage*
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous.*)$/