-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added configuration for TravisCI * Removed some extraneous configurations * Simplify Travis a bit, add finalName to POM. * Make maven not run as quiet. * Add Travis badge to README. * Break Maven steps out into more commands
- Loading branch information
Showing
3 changed files
with
35 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
language: java | ||
if: tag IS present OR NOT (branch == master) | ||
jdk: | ||
- openjdk8 | ||
cache: | ||
directories: | ||
- "$HOME/.m2" | ||
script: | ||
- | | ||
mvn clean compile -B -q | ||
mvn test -B | ||
mvn package -B -q | ||
# if [ "$TRAVIS_BRANCH" = "master" ] || [ "${TRAVIS_TAG}X" != "X" ]; then | ||
## Only run these commands when building a release | ||
# mvn sonar:sonar -Dsonar.login=${SONAR_PROJECT_TOKEN} -B | ||
# mvn -q dependency-check:check -B | ||
# fi | ||
before_deploy: | ||
- export PLUGIN_JAR=$(ls target/sonar-auth-openshift-plugin*jar) | ||
- echo "deploying $PLUGIN_JAR to GitHub releases" | ||
deploy: | ||
provider: releases | ||
api_key: "${GITHUB_OAUTH_TOKEN}" | ||
file_glob: true | ||
file: | ||
- "${PLUGIN_JAR}" | ||
# - "target/site/jacoco/*" | ||
# - "target/dependency-check-report.html" | ||
skip_cleanup: true | ||
on: | ||
tags: true |
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