Permalink
Browse files

adding sonar to the build

  • Loading branch information...
klieber committed Apr 1, 2017
1 parent 823552f commit dc3ef56ed822535edcede404b740ee2e926feeac
Showing with 13 additions and 4 deletions.
  1. +11 −2 .travis.yml
  2. +2 −2 src/main/java/com/github/searls/jasmine/mojo/TestMojo.java
View
@@ -1,11 +1,20 @@
language: java
+sudo: false
+addons:
+ sonarqube:
+ organization: "klieber-github"
+ token:
+ secure: "DQAuVUJIQG3w9TlsIU24rcCjZUnqtkGa2uFWjyN4dYL/VRZp9J8SYhpsqef8dOtGgzPVsxyRumqhXwFo1/h1HJp1O9d8IVMC+AGgzLZeH1kApODcHNTIaAMs15h+LDHwKSODMV9wjlssL3q5qD97DbjBbjOrQymkGyga4/gNc6Q="
jdk:
- - oraclejdk7
- oraclejdk8
before_install:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
install: travis_retry bundle install
-script: bundle exec rake cucumber
+script: bundle exec rake cucumber && mvn sonar:sonar
after_success:
- mvn clean test jacoco:report coveralls:report
+cache:
+ directories:
+ - '$HOME/.m2/repository'
+ - '$HOME/.sonar/cache'
@@ -7,9 +7,9 @@
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

0 comments on commit dc3ef56

Please sign in to comment.