-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
62 lines (57 loc) · 1.2 KB
/
Copy path.gitlab-ci.yml
File metadata and controls
62 lines (57 loc) · 1.2 KB
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
image: netczuk/node-yarn:node-6-yarn-0.18.1
stages:
- build
- tests
- documentation
download_dependencies:
stage: build
cache:
key: "$CI_COMMIT_REF_NAME"
untracked: true
paths:
- node_modules/
script:
- yarn
unit_tests:
stage: tests
services:
- name: selenium/standalone-chrome
alias: selenium-unit
cache:
key: "$CI_COMMIT_REF_NAME"
untracked: true
policy: pull
paths:
- node_modules/
script:
# necessário rodar este script antes pois ele não faz parte do processo de instalação
# vide: https://github.com/karma-runner/karma-sauce-launcher/issues/117 (comentario voltrevo de 9 de abril)
- node node_modules/wd/scripts/build-browser-scripts.js
- yarn run test:ci
tests_e2e:
stage: tests
services:
- name: selenium/standalone-chrome
alias: selenium-e2e
cache:
key: "$CI_COMMIT_REF_NAME"
untracked: true
policy: pull
paths:
- node_modules/
script:
- yarn run e2e:ci
pages:
stage: documentation
cache:
key: "$CI_COMMIT_REF_NAME"
untracked: true
policy: pull
paths:
- node_modules/
script:
- yarn run compodoc
- mv documentation public
artifacts:
paths:
- public