Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ env:
# RE-USABLE CONFIGS
#
only_sonarsource_qa: &ONLY_SONARSOURCE_QA
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == "master" || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BRANCH =~ "dogfood-on-.*")
only_if: $CIRRUS_USER_COLLABORATOR == 'true' && $CIRRUS_TAG == "" && ($CIRRUS_PR != "" || $CIRRUS_BRANCH == $CIRRUS_DEFAULT_BRANCH || $CIRRUS_BRANCH =~ "branch-.*" || $CIRRUS_BRANCH =~ "dogfood-on-.*")

docker_build_container_template: &CONTAINER_TEMPLATE
dockerfile: .cirrus/Dockerfile
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ gulp.task("default", gulp.series("clean", "build", "extension"));
gulp.task("sonarqube:scan", async () => {
function run(extension) {
return new Promise((resolve) => {
if (process.env.CIRRUS_BRANCH === "master" && !process.env.CIRRUS_PR) {
if (process.env.CIRRUS_BRANCH === process.env.CIRRUS_DEFAULT_BRANCH && !process.env.CIRRUS_PR) {
runSonarQubeScanner(
extension,
{
Expand Down
7 changes: 6 additions & 1 deletion src/common/sonarcloud-v1/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
const path = require("path");

module.exports = {
clearMocks: true,
collectCoverageFrom: ["**/*.ts", "!<rootDir>/node_modules/"],
coverageDirectory: "coverage",
coverageReporters: ["lcovonly", "text"],
coverageReporters: [
["lcovonly", { projectRoot: path.join(__dirname, "..", "..", "..") }],
"text",
],
moduleFileExtensions: ["ts", "js"],
testPathIgnorePatterns: ["<rootDir>/node_modules", "<rootDir>/config", "<rootDir>/build"],
testRegex: "(/__tests__/.*|\\-test)\\.ts$",
Expand Down
7 changes: 6 additions & 1 deletion src/common/sonarqube-v5/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
const path = require("path");

module.exports = {
clearMocks: true,
collectCoverageFrom: ["**/*.ts", "!<rootDir>/node_modules/"],
coverageDirectory: "coverage",
coverageReporters: ["lcovonly", "text"],
coverageReporters: [
["lcovonly", { projectRoot: path.join(__dirname, "..", "..", "..") }],
"text",
],
moduleFileExtensions: ["ts", "js"],
testPathIgnorePatterns: ["<rootDir>/node_modules", "<rootDir>/config", "<rootDir>/build"],
testRegex: "(/__tests__/.*|\\-test)\\.ts$",
Expand Down