Skip to content

Commit fa9f3be

Browse files
committed
ci(sonarqube): CORE-2128 Add Sonarqube
1 parent 6aa7129 commit fa9f3be

File tree

4 files changed

+29
-1
lines changed

4 files changed

+29
-1
lines changed

Diff for: .gitlab-ci.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
include:
2+
- project: infrastructure/gitlab_shared_ci
3+
file: Sonarqube.gitlab-ci.yml
4+
5+
stages:
6+
- test
7+
8+
test:
9+
stage: test
10+
script: npm run test:ci

Diff for: .nycrc

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"check-coverage": false,
3+
"report-dir": "./coverage",
4+
"reporter": ["cobertura", "lcov", "text"],
5+
"branches": 60,
6+
"lines": 60,
7+
"functions": 60,
8+
"statements": 60,
9+
"watermarks": {
10+
"lines": [60, 80],
11+
"functions": [60, 80],
12+
"branches": [60, 80],
13+
"statements": [60, 80]
14+
}
15+
}

Diff for: package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@
99
}
1010
},
1111
"scripts": {
12+
"docs": "jsdoc -c .jsdocrc.js -d docs",
1213
"test": "nyc mocha",
13-
"docs": "jsdoc -c .jsdocrc.js -d docs"
14+
"test:ci": "nyc mocha"
1415
},
1516
"author": "Corellium (https://www.corellium.com)",
1617
"homepage": "https://corellium.github.io/corellium-api/index.html",

Diff for: sonar-project.properties

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
sonar.projectKey=middleware_corellium-api_AYbhoxTjh4vu5Cz3OE71
2+
sonar.qualitygate.wait=true

0 commit comments

Comments
 (0)