-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dev: initial sonarcloud setup * dev: config.yml update * dev: config.yml update * doc: README.md update
- Loading branch information
Showing
4 changed files
with
46 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ version: 2.1 | |
orbs: | ||
docker: circleci/[email protected] | ||
node: circleci/[email protected] | ||
|
||
sonarcloud: sonarsource/[email protected] | ||
jobs: | ||
generate_schema: | ||
executor: | ||
|
@@ -45,14 +45,23 @@ jobs: | |
docker build --network=flexo-mms-test-network -t flexo-mms-test:latest -f Dockerfile-Test . | ||
docker run --network=flexo-mms-test-network --name flexo-mms-test-container flexo-mms-test:latest | ||
SIG_INT=$? | ||
docker cp flexo-mms-test-container:/application/build/reports/tests /home/circleci/results | ||
docker cp flexo-mms-test-container:/application/build /home/circleci/flexo-mms-layer1-service/build | ||
exit "$SIG_INT" | ||
- store_artifacts: | ||
path: /home/circleci/results | ||
path: /home/circleci/flexo-mms-layer1-service/build | ||
- persist_to_workspace: | ||
root: /home/circleci/ | ||
paths: | ||
- flexo-mms-layer1-service/* | ||
scan: | ||
executor: | ||
name: docker/docker | ||
working_directory: /home/circleci/flexo-mms-layer1-service | ||
steps: | ||
- checkout | ||
- attach_workspace: | ||
at: /home/circleci/flexo-mms-layer1-service | ||
- sonarcloud/scan | ||
|
||
deploy_snapshot: | ||
executor: | ||
|
@@ -132,13 +141,23 @@ workflows: | |
version: 2 | ||
build-test-deploy: | ||
jobs: | ||
- scan: | ||
requires: | ||
- build_and_test | ||
context: | ||
- SonarCloud | ||
- generate_schema: | ||
filters: | ||
tags: | ||
only: /v[0-9.]+(-[\w-]+(\.[0-9]+)?)?/ | ||
context: | ||
- DockerHub | ||
- build_and_test: | ||
post-steps: | ||
- persist_to_workspace: | ||
root: /home/circleci/flexo-mms-layer1-service | ||
paths: | ||
- build/* | ||
requires: | ||
- generate_schema | ||
filters: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sonar.projectKey=Open-MBEE_flexo-mms-layer1-service | ||
sonar.organization=openmbee | ||
sonar.language=kotlin | ||
sonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/jacocoTestReport.xml |