diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..1f33e13 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,9 @@ +language: java +os: + - linux +jdk: + - oraclejdk8 + +script: + - mvn install + - mvn checkstyle:check diff --git a/pom.xml b/pom.xml index 8a9ddd9..92cc555 100644 --- a/pom.xml +++ b/pom.xml @@ -23,6 +23,32 @@ checkstyle-extension 1.1.0-SNAPSHOT + https://github.com/jboss-qa/checkstyle-extension + + https://github.com/jboss-qa/checkstyle-extension/issues + GitHub Issues + + + + Travis CI + https://travis-ci.org/jboss-qa/checkstyle-extension + + + + + The Apache Software License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0 + repo + + + + + https://github.com/jboss-qa/checkstyle-extension + scm:git:git://github.com/jboss-qa/checkstyle-extension.git + scm:git:git@github.com:jboss-qa/checkstyle-extension.git + HEAD + + UTF-8 1.7 diff --git a/release.sh b/release.sh new file mode 100755 index 0000000..d085832 --- /dev/null +++ b/release.sh @@ -0,0 +1,35 @@ +#!/bin/bash +# Release script + +# Exit whenever a command fails +set -e + +if [ $# != 2 ]; then + echo "usage: ./release.sh " + exit +fi + +RELEASE_VERSION=$1 +DEVEL_VERSION=$2 +TAG=v$RELEASE_VERSION + +read -r -p "Release details: +* releaseVersion = $RELEASE_VERSION +* developmentVersion = $DEVEL_VERSION +Are you sure? [y/N]: " response +response=$(echo $response | tr '[:upper:]' '[:lower:]') # tolower + +if [[ $response =~ ^(yes|y) ]]; then + git checkout develop + git pull upstream develop + mvn -B release:prepare -DreleaseVersion=$RELEASE_VERSION -DdevelopmentVersion=$DEVEL_VERSION + mvn release:perform + git checkout master + git pull upstream master + git rebase $TAG + git push upstream develop master $TAG + git checkout develop + echo "Done!" +else + echo "Canceled!" +fi