michael-o closed pull request #97: .travis and SonarQube.com support
URL: https://github.com/apache/maven/pull/97
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000000..347dbad244
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,46 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you 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.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+language: java
+jdk:
+  - openjdk7
+sudo: false
+addons:
+  apt:
+    packages:
+      - oracle-java8-installer
+  sonarqube: true
+cache:
+  directories:
+    - "$HOME/.m2"
+    - "$HOME/.sonar/cache"
+env:
+  global:
+    - JAVA_TOOL_OPTIONS: "-Xmx512m"
+    - MAVEN_OPTS: "-Xmx512m"
+    - secure: 
fTuQG00/LoV6nPKinPr41wBmSblaNpFoEvLD2mG0FIokwBS3m+AUrfHnyvQkVbvkSGFzvTfXFca9ucobzuMV9z8SCBWBZv0ZzOm6D1wCBqbbjhvpNjLog0A3546MZ0Fzn7V6/6ZfK2qtERC6eF8uRSKSkiTmlUFR3bTZXE+m0fCiv53bGeNh0M6nj+pApC6wVkOfWvre/di8GvnKQc1RqN/EZCCxTAEyQfGkJKFNfqJfBwahUjAhm5jiAsFtqbyWmUCjHeigWYvHC1zj1knZ7v4F+du2NpUra6pOIwFdxFXp5eJGa8ano35DG2lEb/fIyeEYnfBw8bf63Wte8GSOLWg+qOxHgeIg9W1h9o8ywoyNvs1UOz3gTXj/lIQiGFmrW3g8YAzsfHac6Owyl6+QH6sft4xcVqbflclOpCJ3m5WJPX6km0N0tqkaAgT4mu7NSalWEKYNrTv1aPUU84C/Wj+lfP0dNzaYQpqK8zE1c1gzjsyoOm9dXxqZNJIk1/1axmr8xGC94ODMw2DJ//ibld74BVK0ybCQdgDepmbJgtE1SZCxpvOZPdCLMni4vG7uSKk116x5vKBdOnyXTaVKSqY94hiafh8QNdUSkObaWTr9M8rgIWkYJfpnvkT97dSS8SuA+CZQBGgYWkgq6QWLtdN482NxRD/AdVU+0MpuZDc=
+install:
+  - mvn dependency:go-offline
+before_script:
+  - mvn clean
+script:
+  - mvn 
-DdistributionTargetFolder="$HOME/app/maven/apache-maven-3.4.x-SNAPSHOT" 
-Dsonar.dynamicAnalysis=reuseReports 
-Dsonar.jacoco.reportPath="${PWD}/target/jacoco.exec" 
-Djacoco.destFile="${PWD}/target/jacoco.exec" 
org.jacoco:jacoco-maven-plugin:prepare-agent package
+after_success:
+  - jdk_switcher use oraclejdk8
+  - mvn sonar:sonar
diff --git a/README.md b/README.md
index 33a4be48ce..645a2d4425 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,9 @@
 
 Maven is available under the [Apache License, Version 
2.0](https://www.apache.org/licenses/LICENSE-2.0.txt)
 
+[![Build 
Status](https://travis-ci.org/apache/maven.svg?branch=master)](https://travis-ci.org/apache/maven)
+[![Quality 
Gate](https://sonarqube.com/api/badges/gate?key=org.apache.maven:maven)](https://sonarqube.com/dashboard/index/org.apache.maven:maven)
+
 - [Maven Issue Tracker](https://issues.apache.org/jira/browse/MNG)
 - [Maven Wiki](https://cwiki.apache.org/confluence/display/MAVEN/Index)
 - [Building 
Maven](https://maven.apache.org/guides/development/guide-building-maven.html)


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to