-
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a TravisCi file to build on a push to master and release JARs
To make these easier to play around with, it would be nice if the JARs were provided. This commit adds a `.travis.yml` file that will build the project and upload all JARs to the github releases page. You'll need to create a github personal access token with `public_repo` access and submit this as a secret environment variable on the travis job. **note:** I commented out anything relating to keycloak-testsuite as I was unable to find a maven repository serving those dependencies
- Loading branch information
Showing
3 changed files
with
41 additions
and
10 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,31 @@ | ||
language: java | ||
jdk: | ||
- openjdk8 | ||
branches: | ||
only: | ||
- master | ||
cache: | ||
directories: | ||
- "$HOME/.m2" | ||
before_install: | ||
# - export APP_VERSION="`mvn org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version | grep -Ev '(^\[|Download\w+:)'`-$TRAVIS_BUILD_NUMBER" | ||
# - echo $APP_VERSION | ||
script: | ||
# - mvn versions:set -DnewVersion=$APP_VERSION | ||
- mvn clean package | ||
before_deploy: | ||
# - git config --global user.email "[email protected]" | ||
# - git config --global user.name "Travis CI" | ||
# - git commit -a -m "Set version to $APP_VERSION" | ||
# - git tag $APP_VERSION -a -m "Generated tag from TravisCI for $APP_VERSION" | ||
# - git push -q -f https://[email protected]/imduffy15/keycloak-extension-playground --tags | ||
deploy: | ||
skip_cleanup: true | ||
provider: releases | ||
api_key: $GITHUB_API_KEY | ||
file_glob: true | ||
file: "**/target/*.jar" | ||
on: | ||
repo: imduffy15/keycloak-extension-playground | ||
tags: false | ||
branch: 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
16 changes: 8 additions & 8 deletions
16
...ver/src/main/java/com/github/thomasdarimont/keycloak/server/KeycloakPlaygroundServer.java
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,12 +1,12 @@ | ||
package com.github.thomasdarimont.keycloak.server; | ||
// package com.github.thomasdarimont.keycloak.server; | ||
|
||
import org.keycloak.testsuite.KeycloakServer; | ||
// import org.keycloak.testsuite.KeycloakServer; | ||
|
||
public class KeycloakPlaygroundServer { | ||
// public class KeycloakPlaygroundServer { | ||
|
||
public static void main(String[] args) throws Throwable { | ||
// public static void main(String[] args) throws Throwable { | ||
|
||
System.out.println("Starting KeycloakPlaygroundServer"); | ||
KeycloakServer.main(args); | ||
} | ||
} | ||
// System.out.println("Starting KeycloakPlaygroundServer"); | ||
// KeycloakServer.main(args); | ||
// } | ||
// } |