This repository has been archived by the owner on Apr 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bitbucket-pipelines.yml
50 lines (49 loc) · 1.67 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
image: node:7.4.0
pipelines:
default: # Pipelines that run automatically on a commit to a branch
- step:
image: weltn24/up-docker-node-chrome-headless
caches:
- node
script:
- npm install
- npm run test/chromeHeadless
branches:
mergingFeature/deployment:
- step:
name: Build and deploy on UAT
deployment: test
script:
- npm install
- git config --global user.email "[email protected]"
- git config --global user.name "Frankie"
- npm run increaseVersionNumber
- npm run build -- --phase UAT
- npm run deploy -- --phase UAT
- npm run deploy -- --phase UAT --index
- ./bugsnag-deploy.sh UAT
dev:
- step:
name: Build and deploy on UAT
deployment: test
script:
- npm install
- git config --global user.email "[email protected]"
- git config --global user.name "Frankie"
- npm run increaseVersionNumber
- npm run build -- --phase UAT
- npm run deploy -- --phase UAT
- ./bugsnag-deploy.sh UAT
PROD:
- step:
name: Build and deploy on PROD
deployment: production
script:
- npm install
- git config --global user.email "[email protected]"
- git config --global user.name "Frankie"
- npm run build -- --phase PROD
- npm run deploy -- --phase PROD
- npm run addGitTagToRepo
- npm run notifyTicketsChanel -- --phase PROD
- ./bugsnag-deploy.sh PROD