-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
43 lines (37 loc) · 762 Bytes
/
Copy path.gitlab-ci.yml
File metadata and controls
43 lines (37 loc) · 762 Bytes
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
default:
image: angular-temp-ci:latest
cache:
paths:
- ./node_modules/
build-job:
stage: build
script:
- rm ./package-lock.json
- rm -rf ./node_modules
- npm i
- ./node_modules/@angular/cli/bin/ng build
artifacts:
paths:
- ./node_modules/
unit-tests:
stage: test
script:
- rm ./package-lock.json
- rm -rf ./node_modules
- npm i
- ./node_modules/@angular/cli/bin/ng test --watch=false
allow_failure: true
e2e-tests:
stage: test
script:
- ./node_modules/@angular/cli/bin/ng e2e
allow_failure: true
format-check:
stage: test
script:
- ./node_modules/@angular/cli/bin/ng lint
allow_failure: true
deploy-prod:
stage: deploy
script:
- echo "Create suitable deploy script"