Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: java
os:
- linux
jdk:
- oraclejdk8

script:
- mvn install
- mvn checkstyle:check
26 changes: 26 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,32 @@
<artifactId>checkstyle-extension</artifactId>
<version>1.1.0-SNAPSHOT</version>

<url>https://github.com/jboss-qa/checkstyle-extension</url>
<issueManagement>
<url>https://github.com/jboss-qa/checkstyle-extension/issues</url>
<system>GitHub Issues</system>
</issueManagement>

<ciManagement>
<system>Travis CI</system>
<url>https://travis-ci.org/jboss-qa/checkstyle-extension</url>
</ciManagement>

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0</url>
<distribution>repo</distribution>
</license>
</licenses>

<scm>
<url>https://github.com/jboss-qa/checkstyle-extension</url>
<connection>scm:git:git://github.com/jboss-qa/checkstyle-extension.git</connection>
<developerConnection>scm:git:git@github.com:jboss-qa/checkstyle-extension.git</developerConnection>
<tag>HEAD</tag>
</scm>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
Expand Down
35 changes: 35 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#!/bin/bash
# Release script

# Exit whenever a command fails
set -e

if [ $# != 2 ]; then
echo "usage: ./release.sh <releaseVersion> <developmentVersion>"
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