This repository has been archived by the owner on Dec 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
110 lines (100 loc) · 2.29 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
language: bash
dist: xenial
sudo: required
branches:
only:
- master
cache:
directories:
- $HOME/.cache
env:
global:
# Environment variables for packaging
- PRODUCT=flameshot
- VERSION=0.6.0
- RELEASE=1
- ARCH=x86_64
- FLATPAK_DOCKER_REPO="vitzy/flameshot:fedora-30"
- LC_ALL: C.UTF-8
- LANG: C.UTF-8
- SNAPCRAFT_ENABLE_SILENT_REPORT: y
- SNAPCRAFT_ENABLE_DEVELOPER_DEBUG: y
matrix:
include:
- os: linux
env: OS=ubuntu DIST=xenial EXTEN=appimage
language: cpp
- os: linux
env: OS=ubuntu DIST=xenial EXTEN=snap
language: cpp
addons:
snaps:
- name: snapcraft
channel: stable
classic: true
- name: http
- name: transfer
- name: lxd
channel: stable
- os: linux
env: OS=fedora DIST=30 EXTEN=flatpak RUN_TIME=kde
services: docker
language: cpp
before_install:
- export ROOT_PATH="$(pwd)"
- export SRC_PATH="${ROOT_PATH}/flameshot"
- chmod +x ${ROOT_PATH}/scripts/*.sh
- chmod +x ${ROOT_PATH}/scripts/services/*.sh
- |
case "$EXTEN" in
"appimage")
source ${ROOT_PATH}/scripts/appimage_before_install.sh
;;
"snap")
source ${ROOT_PATH}/scripts/snap_before_install.sh
;;
"flatpak")
source ${ROOT_PATH}/scripts/flatpak_before_install.sh
;;
esac
install:
- |
case "${EXTEN}" in
"appimage")
source ${ROOT_PATH}/scripts/appimage_install.sh
;;
"snap")
source ${ROOT_PATH}/scripts/snap_install.sh
;;
"flatpak")
source ${ROOT_PATH}/scripts/flatpak_install.sh
;;
esac
script:
- |
case "${EXTEN}" in
"appimage")
source ${ROOT_PATH}/scripts/appimage_script.sh
;;
"snap")
source ${ROOT_PATH}/scripts/snap_script.sh
;;
"flatpak")
source ${ROOT_PATH}/scripts/flatpak_script.sh
;;
esac
- pwd && ls
after_success:
- |
case "${EXTEN}" in
"appimage")
source ${ROOT_PATH}/scripts/appimage_after_success.sh
;;
"snap")
source ${ROOT_PATH}/scripts/snap_after_success.sh
;;
"flatpak")
source ${ROOT_PATH}/scripts/flatpak_after_success.sh
;;
esac