Skip to content

Commit

Permalink
Issue #61: make sonar public profile to allow binaries be hosted at S…
Browse files Browse the repository at this point in the history
…onar Software Update Center
  • Loading branch information
romani committed Jan 24, 2017
1 parent 3dcf456 commit 467846e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
language: java
sudo: false

install: true

script: ./travis.sh

addons:
sonarqube:
token:
secure: "CTOzP3DCtl6GotoLEiKjLcmw2aJ4bw6hpxp/sskmFg+6qq/u1lt8VSueJIcDdpRqt5azpyvM6+yEM+9Rlm2SmJ08pmRcCL/WDPB4r2q5aQ8pyqOLUvVcdfiDoB3opWYNJKLHW3OQRfVxxDoNOWkhdvMlhndXQmjbmEJkMOY9cuv54hy/ypEwp0MGynHc/mJ4sC+tI5q+jpDldYLaEiGJiraULQmie5L+1SXUBBHkxQiPOEJ+ZcbjqfZzUzU8Z1Nyie4n9seozBhh2eFiGzsYp015IpTZ8YnddE7mklxSj5bzQewpcKmGlepRjCA221ifpmcw9QoW6EMh8IXwAg0F89EmVh5twa3BIEwC35OhNTfjb/TAWtmDpyUskrkiRZN6RnqpN5LU9/gAKOcnV5d5u5o3qVzQfyVZ6qEzubt5w8yx20h9mwWi3FXAXQUUkSI9thjD+Fqs+zZ2h7FWImKxma/cTVoTO9bjyYlvOlNMK3SgWUJeZXfqSAas2p+DtNbbP4eYcQdEyAKGKqBU3X7GZezCbxSeODXEgy0eLXmxLJCOg4RBbV08k1pqbZ0YaSZsag1mO2Lc8UlOkeUB3MxHP5GCFPYxM8MNsYuZfshXbUAEeUGathJbScmTBfbDJb/Xsb2HP/CPkiCGgbLHXV3SJKJjmQvjdG+DcuJ3rZKTBG8="

cache:
apt: true
directories:
- ~/.m2
- '$HOME/.sonar/cache'

addons:
apt:
Expand All @@ -25,3 +31,7 @@ matrix:
# package
- jdk: oraclejdk8
env: TEST=nondex

# sonar
- jdk: oraclejdk8
env: TEST=sonar
5 changes: 5 additions & 0 deletions travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ ci)
mvn clean verify -B -e -V
;;

sonar)
if [[ $TRAVIS_PULL_REQUEST =~ ^([0-9]*)$ ]]; then exit 0; fi
mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
;;

nondex)
cd checkstyle-sonar-plugin
mvn --fail-never clean nondex:nondex -Dcheckstyle.skip=true
Expand Down

0 comments on commit 467846e

Please sign in to comment.