From 2bfc1dcc5976137cb669a04d876c6e2be87e47c5 Mon Sep 17 00:00:00 2001 From: David Rautureau Date: Mon, 13 Aug 2018 14:00:14 +0200 Subject: [PATCH] SONARHG-2 Move back to SonarSource organization --- .travis.yml | 15 ++++++--------- README.md | 2 +- pom.xml | 17 ++++++++++------- travis.sh | 14 ++++++++++++++ 4 files changed, 31 insertions(+), 17 deletions(-) create mode 100755 travis.sh diff --git a/.travis.yml b/.travis.yml index ce6365d..49e8472 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,19 +5,16 @@ install: true jdk: - oraclejdk8 -addons: - apt: - packages: - - mercurial - script: - - hg --version - - mvn verify -Pits -Dsonar.runtimeVersion=DEV -B -e -V - - mvn verify -Pits -Dsonar.runtimeVersion=LATEST_RELEASE[6.7] -B -e -V + - ./travis.sh cache: directories: - - '$HOME/.m2/repository' + - $HOME/.m2/repository + - $HOME/.sonar notifications: email: false + webhooks: + - secure: "azdp/Wu6vLgS4XcEx/TwfwpO4kKVnC+V+SN/OhVMrblNeYhT7gNbe8dhBcw70DE8PgcMSg/u5Xs2F2g5lzP/FfUepqvC6vzbq8ksrSZfgWqpXfOQWV2izNfBp57gTrvENl0inKsQrGbHOvgZ2A2GIGNMLPfBma5ezKhZhT8bmQY=" + on_start: always diff --git a/README.md b/README.md index 6a5c955..994aaba 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # SonarQube Mercurial plugin -[![Build Status](https://travis-ci.org/SonarQubeCommunity/sonar-scm-mercurial.svg)](https://travis-ci.org/SonarQubeCommunity/sonar-scm-mercurial) +[![Build Status](https://travis-ci.org/SonarSource/sonar-scm-mercurial.svg)](https://travis-ci.org/SonarQubeCommunity/sonar-scm-mercurial) ## Description This plugin implements SCM dependent features of SonarQube for [Mercurial](http://www.mercurial-scm.org/) projects. diff --git a/pom.xml b/pom.xml index 7e4b0f8..16ed66f 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ org.sonarsource.parent parent - 44 + 46 org.sonarsource.scm.mercurial @@ -42,25 +42,28 @@ - scm:git:git@github.com:SonarQubeCommunity/sonar-scm-mercurial.git - scm:git:git@github.com:SonarQubeCommunity/sonar-scm-mercurial.git - https://github.com/SonarQubeCommunity/sonar-scm-mercurial + scm:git:git@github.com:SonarSource/sonar-scm-mercurial.git + scm:git:git@github.com:SonarSource/sonar-scm-mercurial.git + https://github.com/SonarSource/sonar-scm-mercurial HEAD - GitHub Issues - https://github.com/SonarQubeCommunity/sonar-scm-mercurial/issues + jira + https://jira.sonarsource.com/browse/SONARHG Travis - https://travis-ci.org/SonarQubeCommunity/sonar-scm-mercurial/ + https://travis-ci.org/SonarSource/sonar-scm-mercurial/ 6.7 sonar-scm-mercurial + + + ${project.groupId}:sonar-scm-mercurial-plugin:jar diff --git a/travis.sh b/travis.sh new file mode 100755 index 0000000..b6675d2 --- /dev/null +++ b/travis.sh @@ -0,0 +1,14 @@ + +#!/bin/bash +set -euo pipefail + +function configureTravis { + mkdir -p ~/.local + curl -sSL https://github.com/SonarSource/travis-utils/tarball/v50 | tar zx --strip-components 1 -C ~/.local + source ~/.local/bin/install +} +configureTravis + +export DEPLOY_PULL_REQUEST=true + +regular_mvn_build_deploy_analyze