-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcider-ci.yml
69 lines (67 loc) · 1.87 KB
/
cider-ci.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
jobs:
check-releases-file-is-up-to-date:
name: Check if app/prod/releases.json is up to date
run_when:
on any branch:
type: branch
include_match: ^.*$
context:
tasks:
build:
include:
- cider-ci/environment_variables.yml
traits:
ubuntu-desktop: true
scripts:
include:
- cider-ci/bundle-script.yml
check:
start_when:
bundle has passed:
script_key: bundle
body: |
set -euxo
export PATH=~/.rubies/$RUBY/bin:$PATH
bundle exec ./bin/update-releases
git diff --stat --exit-code -- app/prod/releases.json
draft-release:
name: Draft a release on GH
run_when:
on the release branch:
type: branch
include_match: ^release$
context:
tasks:
release:
include:
- cider-ci/build-and-test.yml
traits:
ci-g2018-04: true
scripts:
# override the existing test; we don't care about the result
test:
body: exit 0
draft-release:
start_when:
build-linux has passed:
script_key: build-linux
build-windows has passed:
script_key: build-windows
build-mac-os has passed:
script_key: build-mac-os
timeout: 10 Minutes
body: |
set -euxo
export PATH=~/.rubies/$RUBY/bin:$PATH
bundle exec ./bin/draft-gh-release
build:
name: Build the App
run_when:
on any branch:
type: branch
include_match: ^.*$
context:
tasks:
build:
include:
- cider-ci/build-and-test.yml