forked from flameshot-org/flameshot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
87 lines (77 loc) · 2.28 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
dist: trusty
sudo: required
language: cpp
branches:
only:
- master
cache:
directories:
- $HOME/.cache
env:
global:
# Environment variables for packpack
- PRODUCT=flameshot
- VERSION=0.6.0
- RELEASE=1
- ARCH=x86_64
# - DOCKER_REPO=packpack/packpack
# - DOCKER_REPO=vitzy/packpack
- DOCKER_REPO=vitzy/flameshot
#The actual list of distribution is available on
#https://hub.docker.com/r/packpack/packpack/tags/
#https://hub.docker.com/r/vitzy/packpack/tags/
#https://hub.docker.com/r/vitzy/flameshot/tags/
matrix:
include:
- os: linux
env: OS=fedora DIST=27 EXTEN=rpm
services: docker
- os: linux
env: OS=fedora DIST=28 EXTEN=rpm
services: docker
- os: linux
# trusty: only for build & test & AppImage
# 14.04 LTS; Qt version is 5.2.1, flameshot not support
env: OS=ubuntu DIST=trusty EXTEN=AppImage
- os: linux
# 16.04 LTS
env: OS=ubuntu DIST=xenial EXTEN=deb
services: docker
- os: linux
# 18.04
env: OS=ubuntu DIST=bionic EXTEN=deb
services: docker
- os: linux
# 8
env: OS=debian DIST=jessie EXTEN=deb
services: docker
- os: linux
# 9
env: OS=debian DIST=stretch EXTEN=deb
services: docker
# - os: osx
# compiler: clang
# osx_image: xcode9.2
before_install:
- chmod +x travis/*.sh
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then source travis/linux_before_install.sh; fi
install:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then source travis/linux_install.sh; fi
script:
# - git submodule update --init --recursive
# - git describe --long
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then source travis/linux_script.sh; fi
# - if [[ "${TRAVIS_OS_NAME}" == "osx" ]]; then source travis/osx_script.sh; fi
- pwd && ls
after_success:
- if [[ "${TRAVIS_OS_NAME}" == "linux" ]]; then source travis/linux_after_success.sh; fi
# deploy:
# # Deploy packages to Github Release
# provider: releases
# api_key: "GITHUB ENCYPTED OAUTH TOKEN"
# file_glob: true
# file: dist/*.{deb,rpm,AppImage,dmg}
# skip_cleanup: true
# on:
# tags: true
# branch: master