diff options
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f129977..d38a1bc 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml | |||
@@ -7,6 +7,7 @@ cache: | |||
7 | stages: | 7 | stages: |
8 | - code-quality | 8 | - code-quality |
9 | - test | 9 | - test |
10 | - integ | ||
10 | - build | 11 | - build |
11 | 12 | ||
12 | default: | 13 | default: |
@@ -40,6 +41,23 @@ test: | |||
40 | path: coverage/test/cobertura-coverage.xml | 41 | path: coverage/test/cobertura-coverage.xml |
41 | junit: junit.xml | 42 | junit: junit.xml |
42 | 43 | ||
44 | integ: | ||
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 | ||
59 | junit: junit.xml | ||
60 | |||
43 | # 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 |
44 | build: | 62 | build: |
45 | stage: build | 63 | stage: build |
@@ -47,6 +65,7 @@ build: | |||
47 | - yarn compile | 65 | - yarn compile |
48 | # TODO: Need to publish the built distributable file | 66 | # TODO: Need to publish the built distributable file |
49 | artifacts: | 67 | artifacts: |
68 | expire_in: 1 week | ||
50 | paths: | 69 | paths: |
51 | - dist/ | 70 | - dist/ |
52 | exclude: | 71 | exclude: |