forked from eficode-academy/war-ci-servers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
77 lines (77 loc) · 1.74 KB
/
config.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
version: 2
jobs:
clone:
docker:
- image: alpine
steps:
- checkout
- persist_to_workspace:
root: .
paths:
- .
test:
machine:
image: ubuntu-2004:current
steps:
- attach_workspace:
at: .
- run:
name: Test with gradle
command: bash ci/unit-test-app.sh
build:
machine:
image: ubuntu-2004:current
steps:
- attach_workspace:
at: .
- run:
name: Build with gradle
command: bash ci/build-app.sh
- persist_to_workspace:
root: .
paths:
- .
Docker-image:
machine:
image: ubuntu-2004:current
steps:
- attach_workspace:
at: .
- run:
name: lint docker
command: bash ci/lint-dockerfile.sh
- run:
name: build docker
command: export GIT_COMMIT="CC-$CIRCLE_SHA1" && bash ci/build-docker.sh
- run:
name: push docker
command: export GIT_COMMIT="CC-$CIRCLE_SHA1" && bash ci/push-docker.sh
system-test:
machine:
image: ubuntu-2004:current
steps:
- attach_workspace:
at: .
- run:
name: Execute component test
command: export GIT_COMMIT="CC-$CIRCLE_SHA1" && bash ci/component-test.sh
- run:
name: Execute performance test
command: export GIT_COMMIT="CC-$CIRCLE_SHA1" && bash ci/performance-test.sh
workflows:
version: 2
the_flow:
jobs:
- clone
- test:
requires:
- clone
- build:
requires:
- clone
- Docker-image:
requires:
- build
- system-test:
requires:
- Docker-image