]> git.r.bdr.sh - rbdr/cologne/blame_incremental - .gitlab-ci.yml
Add dependency to test
[rbdr/cologne] / .gitlab-ci.yml
... / ...
CommitLineData
1image: node:14
2
3variables:
4 SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar" # Defines the location of the analysis task cache
5
6stages:
7 - lint
8 - test
9 - quality
10
11before_script:
12 - npm install
13
14lint:
15 stage: lint
16 script:
17 - npm run lint
18
19test:
20 stage: test
21 script:
22 - npm test
23
24quality:
25 stage: "quality"
26 needs: ["test"]
27 image:
28 name: sonarsource/sonar-scanner-cli:latest
29 entrypoint: [""]
30 cache:
31 key: "${CI_JOB_NAME}"
32 paths:
33 - .sonar/cache
34 script:
35 - npm run coverage
36 - sonar-scanner
37 only:
38 - merge_requests
39 - master
40