-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.travis.yml
89 lines (76 loc) · 2.61 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
82
83
84
85
86
87
88
89
language: cpp
compiler: gcc
notifications:
email: false
services:
- docker
addons:
apt:
packages:
- realpath wget git realpath
matrix:
include:
## Build AppImage
- env: QT_INSTALL_PREFIX=/opt/qt510 INSTALL_PREFIX=/usr PROJECT_BUILD_DIR=/tmp/build QT_SELECT=qt5
addons:
apt:
sources:
- sourceline: ppa:beineri/opt-qt-5.10.1-trusty
packages:
- realpath
- wget
- git
- realpath
- cmake
- desktop-file-utils
- librsvg2-bin
- libcairo2-dev
- libglib2.0-dev
- libarchive-dev
- libfuse-dev
- liblzma-dev
- qt510-meta-minimal
install:
- "/opt/qt510/bin/qt510-env.sh"
- sudo update-alternatives --install /usr/bin/qmake qmake /opt/qt510/bin/qmake 1
- .travis/install_ecm_from_sources.sh
- .travis/install_xdg_utils_cxx_from_sources.sh
- .travis/install_kf5attica_from_sources.sh
- .travis/install_libappimage_from_sources.sh
- .travis/install_yaml-cpp_from_sources.sh
script:
- /opt/qt510/bin/qt510-env.sh
- export SOURCES_DIR=${PWD}
- mkdir -p ${PROJECT_BUILD_DIR}
- cd ${PROJECT_BUILD_DIR}; ${SOURCES_DIR}/.travis/build_appimage-installer.sh
- cd ${PROJECT_BUILD_DIR}; ${SOURCES_DIR}/.travis/build_appimage.sh
## Build Debian buster package
- env: PKG_BUILD=DEBIAN_BUSTER
script:
- .travis/debian_buster/build_package.sh
## Build Centos 7 package
- env: PKG_BUILD=CENTOS_7
script:
- .travis/centos_7/build_package.sh
## Build Ubuntu Bionic package
- env: PKG_BUILD=UBUNTU_BIONIC
script:
- .travis/ubuntu_bionic/build_package.sh
## Build OpenSuse Leap package
- env: PKG_BUILD=OPENSUSE_LEAP
script:
- .travis/opensuse_leap/build_package.sh
## Build ARCH package
- env: PKG_BUILD=ARCH
dist: xenial
script:
- .travis/arch/build_package.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" != "$TRAVIS_TAG" ] && [ "$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 appimage-installer*.AppImage*
- bash upload.sh docker-build-release/appimage-installer*.rpm
- bash upload.sh docker-build-release/appimage-installer*.deb
- bash upload.sh docker-build-release/appimage-installer*.pkg.tar.xz