forked from fluxapps/ILIAS-Pegasus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
43 lines (37 loc) · 882 Bytes
/
.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
.test_browser: &test_browser
stage: test
before_script:
- npm ci
timeout: "15m"
variables:
npm_config_cache: &npm_cache_path "$CI_PROJECT_DIR/.node_cache_pegasus"
CHROME_BIN: "chromium-browser"
MAPBOX_API_KEY: "key-is-not-required"
PRODUCTION: "false"
script:
- npm run test:ci
coverage: '/All files \|\s*(\d+(\.\d+)?)/'
cache:
key: "ilias_pegasus_node_cache"
paths:
- *npm_cache_path
stages:
- lint
- test
lint:
stage: lint
before_script:
- npm ci
timeout: "5m"
variables:
npm_config_cache: *npm_cache_path
script:
- npm run lint
allow_failure: true
image: node:lts-alpine
test:chrome_77:
<<: *test_browser
image: zenika/alpine-chrome:77-with-node
test:chrome_76:
<<: *test_browser
image: zenika/alpine-chrome:76-with-node