You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by bi...@apache.org on 2018/01/31 03:45:45 UTC
kylin git commit: Ignore SonarCloud for external PR
Repository: kylin
Updated Branches:
refs/heads/master 6a2ee80c9 -> ff8bece21
Ignore SonarCloud for external PR
Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/ff8bece2
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/ff8bece2
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/ff8bece2
Branch: refs/heads/master
Commit: ff8bece2114dc6c2a401b0b774ad14d530fd8c65
Parents: 6a2ee80
Author: Billy Liu <bi...@apache.org>
Authored: Wed Jan 31 11:27:26 2018 +0800
Committer: Billy Liu <bi...@apache.org>
Committed: Wed Jan 31 11:45:31 2018 +0800
----------------------------------------------------------------------
.travis.yml | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/kylin/blob/ff8bece2/.travis.yml
----------------------------------------------------------------------
diff --git a/.travis.yml b/.travis.yml
index cbf3515..ce76775 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -16,16 +16,23 @@
# limitations under the License.
#
language: java
+
addons:
sonarcloud:
organization: "kylin"
token:
secure: "c918989d018ae3af899798716c35f4fe125296a4"
+
jdk:
- oraclejdk8
script:
- - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent test sonar:sonar
+ - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent test
+ - if [[ -n "${TRAVIS_PULL_REQUEST_SLUG}" && "${TRAVIS_PULL_REQUEST_SLUG}" != "${TRAVIS_REPO_SLUG}" ]]; then
+ echo "The pull request from ${TRAVIS_PULL_REQUEST_SLUG} is an EXTERNAL pull request. Skip sonar analysis.";
+ else
+ mvn sonar:sonar;
+ fi
notification:
email:
@@ -33,3 +40,6 @@ notification:
- dev@kylin.apache.org
on_failure: always
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
+