-
Notifications
You must be signed in to change notification settings - Fork 7
/
semaphore.yml
55 lines (50 loc) · 1.2 KB
/
semaphore.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
version: v1.0
name: main
execution_time_limit:
hours: 1
auto_cancel:
queued:
when: 'true'
# fail_fast:
# stop:
# when: 'true'
agent:
machine:
type: e1-standard-2
os_image: ubuntu2004
blocks:
- name: main_block
run:
# when: "branch =~ '^semaphore' OR branch = 'master' OR /^v(\d+)\.(\d+)\.(\d+)/"
when: "branch =~ '^semaphore' OR branch = 'master' OR pull_request !~ '^$'"
task:
env_vars:
- name: YP_CI_BREW_INSTALL
value: dev
- name: YP_LOG_BOOTSTRAP
value: 'true'
prologue:
commands:
- cache restore
- checkout
- git submodule sync --recursive
- git submodule update --init --recursive
jobs:
- name: main_job
commands:
- ./.ci.sh before_install
- ./.ci.sh install
- ./.ci.sh before_script
- ./.ci.sh script
epilogue:
on_fail:
commands:
- ./.ci.sh after_failure
on_pass:
commands:
- ./.ci.sh after_success
always:
commands:
- ./.ci.sh after_script
- ./.ci.sh before_cache
- cache store