forked from FormPress/FormPress
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
55 lines (49 loc) · 919 Bytes
/
.gitlab-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
image: node:12.14
stages:
- lint
- unittest
- buildAndDeploy
run-prettier-check:
stage: lint
script:
- npm install
- npm run pretty-check
only:
- merge_requests
run-eslint:
stage: lint
script:
- npm install
- npm run lint
only:
- merge_requests
run-unit-test-frontend:
stage: unittest
script:
- cd frontend
- yarn install
- yarn test
only:
- merge_requests
run-unit-test-backend:
stage: unittest
script:
- cd backend
- yarn install
- yarn test
only:
- merge_requests
deploy-to-staging:
stage: buildAndDeploy
image: google/cloud-sdk:latest
script:
- ./release.sh primaryv2 europe-west1 formpress-staging ""
when: manual
deploy-to-production:
stage: buildAndDeploy
image: google/cloud-sdk:latest
script:
- ./release.sh primaryv2 europe-west1 formpress-production "-prod"
when: manual
only:
- master