-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
103 lines (100 loc) · 2.98 KB
/
bitbucket-pipelines.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
image: accordo/serverless:node8
pipelines:
default:
- step:
name: PR build
caches:
- node
script:
- npm install
- npm run audit:check
- npm run test:unit:coverage
- npm run test:unit:report
# - npm run test:integration:report
# - npm run test:component:report
branches:
master:
- step:
name: Lint, Coverage, Unit, Integration Test, Component Test
caches:
- node
script:
- npm install
- npm run audit:check
- npm run test:unit:coverage
- npm run test:unit:report
# - npm run test:integration:report
# - npm run test:component:report
- step:
name: Deploy master to dev
deployment: test
caches:
- node-deployment
script:
- bash ./scripts/deploy.sh dev blob-events-processor devlicketysplit
- step:
name: Run health check on dev
caches:
- node
script:
- echo "IMPLEMENT HEALTH CHECK!"
- step:
name: Deploy master to uat
deployment: staging
trigger: manual
caches:
- node-deployment
script:
- bash ./scripts/deploy.sh uat blob-events-processor uatlicketysplit
- step:
name: Run health check on uat
caches:
- node
script:
- echo "IMPLEMENT HEALTH CHECK!"
- step:
name: Deploy master to prod
deployment: production
trigger: manual
caches:
- node-deployment
script:
- bash ./scripts/deploy.sh prod blob-events-processor proddevlicketysplit
- step:
name: Run health check on prod
caches:
- node
script:
- echo "IMPLEMENT HEALTH CHECK! - sure buddy. whatever you say."
custom:
deploy-to-dev:
- step:
name: Deploy feature branch to dev
caches:
- node
- node-deployment
script:
- npm install
- npm run audit:check
- npm run test:unit:coverage
- npm run test:unit:report
# - npm run test:integration:report
# - npm run test:component:report
- bash ./scripts/deploy.sh dev blob-events-processor devlicketysplit
deploy-to-prod:
- step:
name: Deploy feature branch to prod
caches:
- node
- node-deployment
script:
- npm install
- npm run audit:check
- npm run test:unit:coverage
- npm run test:unit:report
# - npm run test:integration:report
# - npm run test:component:report
- bash ./scripts/deploy.sh prod blob-events-processor proddevlicketysplit
definitions:
caches:
node-deployment: ~/deployments/node_modules