forked from cs50/libcs50
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
111 lines (93 loc) · 1.78 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
111
packagecloud: &packagecloud
provider: packagecloud
username: cs50
repository: repo
token: $PACKAGECLOUD_TOKEN
skip_cleanup: true
on:
branch: master
deb: &deb
<<: *packagecloud
local-dir: build/deb
rpm: &rpm
<<: *packagecloud
local-dir: build/rpm
branches:
except: "/^v\\d/"
addons:
apt:
packages: rpm
before_install: gem install fpm
script:
- make deb
- make rpm
before_deploy: |
if [ -z "$(git tag --list "v$(make version)")" ]; then \
git config --local user.name "bot50"; \
git config --local user.email "[email protected]"; \
git tag "v$(make version)"; \
fi
deploy:
# Ubuntu
# 12.04
- <<: *deb
dist: ubuntu/precise
# 12.10
- <<: *deb
dist: ubuntu/quantal
# 13.04
- <<: *deb
dist: ubuntu/raring
# 13.10
- <<: *deb
dist: ubuntu/saucy
# 14.04
- <<: *deb
dist: ubuntu/trusty
# 14.10
- <<: *deb
dist: ubuntu/utopic
# 15.04
- <<: *deb
dist: ubuntu/vivid
# 15.10
- <<: *deb
dist: ubuntu/wily
# 16.04
- <<: *deb
dist: ubuntu/xenial
# 16.10
- <<: *deb
dist: ubuntu/yakkety
# 17.04
- <<: *deb
dist: ubuntu/zesty
# 17.10
- <<: *deb
dist: ubuntu/artful
# 18.04
- <<: *deb
dist: ubuntu/bionic
# 19.04
- <<: *deb
dist: ubuntu/disco
# Fedora
- <<: *rpm
dist: fedora/24
- <<: *rpm
dist: fedora/25
- <<: *rpm
dist: fedora/26
- <<: *rpm
dist: fedora/27
- <<: *rpm
dist: fedora/28
# GitHub release
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
on:
branch: master
notifications:
slack:
secure: ISOGlNSGXOrMBrKTnjTWQXVjjoBn78++xF1mUv/PYZxn3J4L4WpybLLjAuBENsD7YeHSaXUnSbIV5mDzlx5Q1cyrS+auGOHqi5xGV01zNBB1Fig1SkUf7zJS8KyjiPKyi+DexnTt1BY4xaA1uGzq9hoGZEPXKHNlz4v1I6f6fHQ=