Skip to content

Commit

Permalink
Initial sonar settings #18
Browse files Browse the repository at this point in the history
  • Loading branch information
tillias committed Oct 7, 2020
1 parent 0d73b23 commit d1c670b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,17 @@ script:
- echo "TRAVIS_BRANCH=$TRAVIS_BRANCH, PR=$TRAVIS_PULL_REQUEST, BRANCH=$BRANCH"
- chmod +x mvnw
- ./mvnw -ntp checkstyle:check &&
./mvnw -ntp clean verify &&
./mvnw -ntp clean verify sonar:sonar -Pcoverage -Dsonar.projectKey=myorg_myrepo &&
./mvnw -ntp com.github.eirslett:frontend-maven-plugin:npm -Dfrontend.npm.arguments='run test' -Dmaven.repo.local=$MAVEN_USER_HOME &&
./mvnw -ntp verify -Pprod -DskipTests &&
if [ "$BRANCH" = "master" ]; then
docker build -t tillias/microcatalog . &&
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin &&
docker push tillias/microcatalog &&
./mvnw -ntp com.heroku.sdk:heroku-maven-plugin:2.0.5:deploy-only -Pheroku -Dheroku.buildpacks=heroku/jvm -Dheroku.appName=microcatalog; fi

addons:
sonarcloud:
organization: 'tillias'
notifications:
webhooks:
on_success: change # options: [always|never|change] default: always
Expand Down

0 comments on commit d1c670b

Please sign in to comment.