blob: d38a1bc34c7fba510a9446d2ac8639670bf136d6 (
plain) (
blame)
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
63
64
65
66
67
68
69
70
71
72
73
|
image: node:16.14.2
cache:
paths:
- .yarn/cache/
stages:
- code-quality
- test
- integ
- build
default:
before_script:
- yarn install --immutable
lint:
stage: code-quality
script:
- yarn types
- yarn lint:ci
artifacts:
reports:
codequality: gl-codequality.json
typecheck:
stage: code-quality
script:
- yarn types
- yarn typecheck:ci
test:
stage: test
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
script:
- yarn test:ci
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage/test/cobertura-coverage.xml
junit: junit.xml
integ:
stage: integ
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
before_script:
- apt-get update
- apt-get install -y dbus-x11 libasound2 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libgtk-3-0 libnss3 xvfb
- yarn install --immutable
script:
- yarn test:integ:xvfb:ci
- yarn test:integ:check-exit
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: coverage/integ/cobertura-coverage.xml
junit: junit.xml
# TODO: GitlabCI free runners are only for linux - need to investigate for macos and windows artifacts
build:
stage: build
script:
- yarn compile
# TODO: Need to publish the built distributable file
artifacts:
expire_in: 1 week
paths:
- dist/
exclude:
- dist/builder-debug.yml
- dist/builder-effective-config.yaml
|