Skip to content

Commit

Permalink
Checking Sonar Cloud integration
Browse files Browse the repository at this point in the history
  • Loading branch information
tillias committed Oct 29, 2020
1 parent cf20bd9 commit 45ced6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,21 +49,20 @@ jobs:
- run:
name: Run Front End Tests
command: npm run test
- run:
name: Sonar
command: './mvnw -ntp verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar'
- run:
name: Verify with Prod Profile
command: './mvnw -ntp verify -Pprod -DskipTests'

- when:
condition:
equal: [ circleci-project-setup, << pipeline.git.branch >> ]
equal: [ master, << pipeline.git.branch >> ]
steps:
- run:
name: Deploy to Heroku
command: './mvnw -ntp com.heroku.sdk:heroku-maven-plugin:2.0.5:deploy -DskipTests -Pprod -Dheroku.buildpacks=heroku/jvm -Dheroku.appName=microcatalog'
- when:
condition:
equal: [ master, << pipeline.git.branch >> ]
steps:
- run: echo "This is condition in master"
workflows:
build:
jobs:
Expand Down
3 changes: 2 additions & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
sonar.projectKey=microcatalog
sonar.projectName=microcatalog
sonar.organization=tillias-github
sonar.projectVersion=1.0

sonar.sources=src/main/
sonar.host.url=http://localhost:9001
sonar.host.url=https://sonarcloud.io

sonar.tests=src/test/
sonar.coverage.jacoco.xmlReportPaths=target/jacoco/test/jacoco.xml,target/jacoco/integrationTest/jacoco.xml
Expand Down

0 comments on commit 45ced6c

Please sign in to comment.