forked from cs50/libcs50
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
131 lines (110 loc) · 2.11 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
x-packagecloud: &x-packagecloud
provider: packagecloud
username: cs50
repository: repo
token: $PACKAGECLOUD_TOKEN
skip_cleanup: true
on:
branch: main
x-deb: &x-deb
<<: *x-packagecloud
local_dir: build/deb
x-rpm: &x-rpm
<<: *x-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
- <<: *x-deb
dist: ubuntu/precise
# 12.10
- <<: *x-deb
dist: ubuntu/quantal
# 13.04
- <<: *x-deb
dist: ubuntu/raring
# 13.10
- <<: *x-deb
dist: ubuntu/saucy
# 14.04
- <<: *x-deb
dist: ubuntu/trusty
# 14.10
- <<: *x-deb
dist: ubuntu/utopic
# 15.04
- <<: *x-deb
dist: ubuntu/vivid
# 15.10
- <<: *x-deb
dist: ubuntu/wily
# 16.04
- <<: *x-deb
dist: ubuntu/xenial
# 16.10
- <<: *x-deb
dist: ubuntu/yakkety
# 17.04
- <<: *x-deb
dist: ubuntu/zesty
# 17.10
- <<: *x-deb
dist: ubuntu/artful
# 18.04
- <<: *x-deb
dist: ubuntu/bionic
# 19.04
- <<: *x-deb
dist: ubuntu/disco
# 19.10
- <<: *x-deb
dist: ubuntu/eoan
# 20.04
- <<: *x-deb
dist: ubuntu/focal
# 20.10
- <<: *x-deb
dist: ubuntu/groovy
# Fedora
- <<: *x-rpm
dist: fedora/24
- <<: *x-rpm
dist: fedora/25
- <<: *x-rpm
dist: fedora/26
- <<: *x-rpm
dist: fedora/27
- <<: *x-rpm
dist: fedora/28
- <<: *x-rpm
dist: fedora/29
- <<: *x-rpm
dist: fedora/30
- <<: *x-rpm
dist: fedora/31
- <<: *x-rpm
dist: fedora/32
# GitHub release
- provider: releases
token: $GITHUB_TOKEN
skip_cleanup: true
on:
branch: master
notifications:
slack:
secure: ISOGlNSGXOrMBrKTnjTWQXVjjoBn78++xF1mUv/PYZxn3J4L4WpybLLjAuBENsD7YeHSaXUnSbIV5mDzlx5Q1cyrS+auGOHqi5xGV01zNBB1Fig1SkUf7zJS8KyjiPKyi+DexnTt1BY4xaA1uGzq9hoGZEPXKHNlz4v1I6f6fHQ=