aboutsummaryrefslogtreecommitdiffstats
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml25
1 files changed, 23 insertions, 2 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3b20a62..d38a1bc 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
1image: node:16.13.1 1image: node:16.14.2
2 2
3cache: 3cache:
4 paths: 4 paths:
@@ -7,6 +7,7 @@ cache:
7stages: 7stages:
8 - code-quality 8 - code-quality
9 - test 9 - test
10 - integ
10 - build 11 - build
11 12
12default: 13default:
@@ -35,7 +36,26 @@ test:
35 - yarn test:ci 36 - yarn test:ci
36 artifacts: 37 artifacts:
37 reports: 38 reports:
38 cobertura: coverage/cobertura-coverage.xml 39 coverage_report:
40 coverage_format: cobertura
41 path: coverage/test/cobertura-coverage.xml
42 junit: junit.xml
43
44integ:
45 stage: integ
46 coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
47 before_script:
48 - apt-get update
49 - apt-get install -y dbus-x11 libasound2 libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libgtk-3-0 libnss3 xvfb
50 - yarn install --immutable
51 script:
52 - yarn test:integ:xvfb:ci
53 - yarn test:integ:check-exit
54 artifacts:
55 reports:
56 coverage_report:
57 coverage_format: cobertura
58 path: coverage/integ/cobertura-coverage.xml
39 junit: junit.xml 59 junit: junit.xml
40 60
41# TODO: GitlabCI free runners are only for linux - need to investigate for macos and windows artifacts 61# TODO: GitlabCI free runners are only for linux - need to investigate for macos and windows artifacts
@@ -45,6 +65,7 @@ build:
45 - yarn compile 65 - yarn compile
46 # TODO: Need to publish the built distributable file 66 # TODO: Need to publish the built distributable file
47 artifacts: 67 artifacts:
68 expire_in: 1 week
48 paths: 69 paths:
49 - dist/ 70 - dist/
50 exclude: 71 exclude: