-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
52 lines (45 loc) · 1.06 KB
/
.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
image: registry.gitlab.com/cape-modeler/frontend:latest
stages:
- lint
- test
- after
- deploy
lint:
stage: lint
before_script:
- cp -R /app/node_modules .
script:
- npm run lint -- --no-fix
unit:
stage: test
before_script:
- cp -R /app/node_modules .
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- npm run test:unit -- --ci
after_script:
- ./cc-test-reporter after-build
artifacts:
paths:
- coverage
e2e:
stage: test
before_script:
- cp -R /app/node_modules .
script:
- npm run test:e2e -- --headless --record --key $CYPRESS_RECORD_KEY
pages:
stage: deploy
before_script:
- cp -R /app/node_modules .
script:
- npm run build
- mv public public-vue # GitLab Pages hooks on the public folder
- mv dist public # rename the dist folder (result of npm run build)
artifacts:
paths:
- public
only:
- tags