forked from Nitrux/nx-software-center
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
81 lines (81 loc) · 3.02 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
69
70
71
72
73
74
75
76
77
78
79
80
81
language: cpp
compiler: gcc
dist: trusty
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
- sourceline: ppa:beineri/opt-qt-5.10.1-trusty
- sourceline: deb http://repo.nxos.org nxos main
key_url: http://repo.nxos.org/public.key
packages:
- dpkg
- qt510base
- qt510declarative
- qt510xmlpatterns
- qt510quickcontrols
- qt510quickcontrols2
- qt510graphicaleffects
- qt510x11extras
- qt510svg
- libphonon4qt5-4
- wget
- git
- cmake
- librsvg2-bin
- nomad-plasma-look-and-feel
- luv-icon-theme
- nomad-desktop-settings
- libappimage-dev
- libcairo2-dev
- libglib2.0-dev
before_install:
- wget http://ftp.debian.org/debian/pool/main/p/patchelf/patchelf_0.8-2_amd64.deb
-O /tmp/patchelf_0.8-2_amd64.deb
- wget https://github.com/nomad-desktop/precompiled-kf5-linux/releases/download/continuous/kf5-5.44.0-Release-ubuntu-trusty-amd64.tar.xz
-O /tmp/kf5-5.44.0-Release-ubuntu-trusty-amd64.tar.xz
install:
- sudo dpkg -i /tmp/patchelf_0.8-2_amd64.deb
- sudo tar xpf /tmp/kf5-5.44.0-Release-ubuntu-trusty-amd64.tar.xz -C /usr/
- sudo update-alternatives --install /usr/bin/qmake qmake /opt/qt510/bin/qmake 1
- sudo update-alternatives --install /usr/bin/qmlimportscanner qmlimportscanner /opt/qt510/bin/qmlimportscanner
1
script:
- "/opt/qt510/bin/qt510-env.sh"
- export QT_SELECT=qt5
- cmake -DCMAKE_BUILD_TYPE=release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_PREFIX_PATH="/opt/qt510/"
- make -j$(nproc)
- export PATH=$PATH:/opt/qt510/bin/
- export QML_MODULES_FIND_DIRS="/opt/qt510/qml /usr/lib/x86_64-linux-gnu/qml"
- sudo ldconfig -c /opt/qt510/lib/ /usr/lib/x86_64-linux-gnu/
- build_scripts/appimage.create.sh
after_success:
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f
2-3 | sort | uniq
- mkdir out
- mv -v Software_Center*.AppImage* out/
- curl --upload-file "{$(echo out/* | tr ' ' ',')}" https://transfer.sh/
branches:
except:
-
- "/^(?i:continuous)$/"
before_deploy:
- if [ -z "$TRAVIS_TAG" ]; then export TRAVIS_TAG="continuous"; git tag -f $TRAVIS_TAG;
fi
deploy:
provider: releases
api_key: "$GITHUB_TOKEN"
file_glob: true
file: out/*
skip_cleanup: true
prerelease: true
overwrite: true
on:
repo: Nitrux/nx-software-center
branch: master
tags: true
notifications:
email: false
slack:
secure: TbWvC61g9YAGwoIiGU10mdFkzdiEj0gcz3nxHCVNr/r/qt+0MNViQacT8l3W6nI2ypzMiI47EZlBfLbJR/nDLUl07v3ksQ2SXqdgODuBmf4Y0m3Yc0EWI5W6951emH9zsOlV7wo6yrr93b7uzxMODOudJjVjfYY2Reonl3XHkzpWsHH11VY4OooDh+UUsksySpxLeZ668dB0GycMJ0b6r+ZmBLR6/8e2pjsmF5b0OfKyt6n+rf2cRfI4Kfnl/eZaF63nGA6LpUzW1Ktbx+FU0ZVuxDgeTKK9F3wYbVk5HHzOIvCb2ZQPMZOLp8l97H2gCzPkyp6vmtJI5E4AsONpXV8wMLmk2iYnKsUd/GACqUuIaUhDfOYO128bRSEn0YYOOMQxt/XYZsfx4k81oX6H7XJWqme5xxtjg2tUi1QQ7LFOjOi0vkHF+jr0LQOPzsRjwRpcaWaPxDXvAmPXKOnLBWuP/plToNd6W1FTXdptulR1PHft1UMIdeC4+XO2CbYZVPzDVDTInZ2hpIco0kxEVIRjcNHmxBpqG3mwoDvN15hzmguaGvpDxM0IJHqSH4WIg0frccavZKCgyj1pSdCm/FiW2bbsZLYbM6IAXogurnbMwrxoRyHoh6ftkocZrZ8zyE87mPMjptBBcxLO22mjAJkmiQ39NG7+36ifNuT0/DU=