Skip to content

Commit

Permalink
Add maven-release-plugin and update CI script
Browse files Browse the repository at this point in the history
  • Loading branch information
kwoding committed Sep 22, 2018
1 parent fdedc49 commit a259d0d
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 8 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Expand Up @@ -4,4 +4,9 @@
.idea
output/
build/
target/
target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
pom.xml.next
release.properties
23 changes: 16 additions & 7 deletions .travis.yml
@@ -1,14 +1,23 @@
language: java
install: true

script:
- git config --local user.name "Travis CI"
- git config --local user.email "builds@travis-ci.com"
- git checkout -f master
- mvn -B release:prepare -DskipTests=true -DscmCommentPrefix="[ci skip][maven-release-plugin]" -Dusername=${GITHUB_USERNAME} -Dpassword=${GITHUB_TOKEN}
before_deploy:
- mvn help:evaluate -N -Dexpression=project.version|grep -v '\['
- export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep
-v '\[')
- export TAG=$(git describe --tags --abbrev=0)
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: jrJghxj6OxaU56DnE08yOIwW3uvCwwaKshAePxhjJsD72XeB7zTgRmKyzQXvz5Oe2/F9PAA7tToONEAS01/gE6kBZ79YlRUkXMf4ccS/zwbNB26ZCH9d/DeabAeQUBiRvWPT1CZz9Oeo2eVP+/9pzKX5v4+Yz3/p1TdnBlKb9SvlYaPcr4i4kaWVdqcknOeKDfkHR8L5EWr2iuscwUoabr0B8Ll+/h+Pqf4+UbRxwJLMHK7na4kbFWIXIBeprAr9F0Ny8L8SAEcXAoZJ3rdO0+HuhkDFDk2z6d/N2vp/zx+1uJOXVxSHEaSVT7dXSk20jpzqWpwuvv1WwE8xUmwmfTv9jOZ/X1JphKAycOfquav/t8L0uRyMxqGqZ0JM1aewIlkF5e2gANP1i4Bw0O5HNwCwAaLxSwlTPEAeHLFdabapK9e/nR9BwMYUfgV3lsE+tzry0HEBqOM/Yhl2WD5Y8ZnRhjyhsfY7jN2DZkx9L9FUNdFMwKp4p6/uUMEjM21qfeTPd8GOujewRTn1avVsXjU53ZzXtXsaayJkhZ3zn3gpYPpopfRM3dVxNRRU2U67JoiWWB0k1q/WAwF9mSsjGk61yKM2RkDOg1DWFwdKs0vaWNH2hrLUNAM08ImLz9vCwyPan1PyAAn4hcBkVf20FZOG6L4XM7IWFnzPvii3GwQ=
file: target/sonar-webdriver-plugin-$project_version.jar
skip_cleanup: true
secure: P0lRbq1nE3kXiOflcyQswPT7FZwT0tQIl7VCzP4uyewic0z9T4MZJJ52LCZ8sayTgojyUfkVGzLp0bFAIkFwAyPTvFqMT4evzhRwbv6Hmn5pM+wXam0y6ml+mvdYrKcw78HZRQleLvFGORhhjK+jbFFgGpxo4OaCj6D/MN4CmFdyh5nAV2P76IZdigehoJcsyQIa3URz6AUbCPe5ZswbqyKPDC3u9E4eYqz1AnKII+K0GCFatKPepFAC87mHm6TjEtliARKcc/LOLH3Ab0h9I005M16tjChz5uws4CEMTsGF7WrkodFtjyxE0qW2b+CM14laNqrBtXwphECTH56rhjDjYlC8EoyxrNDS7N+RQFrRXnkrA+OHVykUhjdoJl4m75w460V7pdstkMeRr8DeWMvkVqqKwFuI65n++1PDU4lgFqPlhYmH13EBaFJatfA5oPOg5BXY+LtX0SLGBp3+ZanOVGr8caa0TC0Jjezb0Ru/SceKdGK+tfyT2dSC8d8pUZeNdg8L3cFuDm71FngFXXH0gsGIl+e3CjhU8P2igrxiJtwAyX/BXYY7zQuAyaX36jNy0ko1GucD0labO2uqxQqJ+LjZNIUM+4pMJBc2da/qJ3q1iz47tO1Ht+5dggUBEeowgxhpYle+biDxz5B2vnbgv1NqC2Wv/2zfla26jwI=
tag_name: $TAG
file: target/$TAG.jar
on:
repo: kwoding/sonar-webdriver-plugin
name: $project_version
name: $TAG
branches:
only:
- master
12 changes: 12 additions & 0 deletions pom.xml
Expand Up @@ -11,6 +11,12 @@
<name>Sonar WebDriver Plugin</name>
<description>WebDriver plugin for Sonar</description>

<scm>
<url>https://github.com/kwoding/sonar-webdriver-plugin</url>
<connection>scm:git:https://github.com/kwoding/sonar-webdriver-plugin.git</connection>
<developerConnection>scm:git:https://github.com/kwoding/sonar-webdriver-plugin.git</developerConnection>
</scm>

<properties>
<sonar.version>7.2.1</sonar.version>
<sonarjava.version>5.6.1.15064</sonarjava.version>
Expand All @@ -30,6 +36,7 @@
<selenium.version>3.14.0</selenium.version>
<selenium-remote-driver.version>3.0.1</selenium-remote-driver.version>
<selenium-support.version>3.11.0</selenium-support.version>
<maven-release-plugin.version>2.5.3</maven-release-plugin.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -121,6 +128,11 @@
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
</plugin>

<!-- only required to run UT - these are UT dependencies -->
<plugin>
Expand Down

0 comments on commit a259d0d

Please sign in to comment.