Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add maven-release-plugin and update CI script
- Loading branch information
Showing
3 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters