diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..a2a4de0 --- /dev/null +++ b/.travis.yml @@ -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 "builds@travis-ci.com" +# - 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://$GITHUB_API_KEY@github.com/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 diff --git a/keycloak-playground-server/pom.xml b/keycloak-playground-server/pom.xml index 0f51be2..9c542c2 100644 --- a/keycloak-playground-server/pom.xml +++ b/keycloak-playground-server/pom.xml @@ -103,9 +103,9 @@ ${project.version} - + \ No newline at end of file diff --git a/keycloak-playground-server/src/main/java/com/github/thomasdarimont/keycloak/server/KeycloakPlaygroundServer.java b/keycloak-playground-server/src/main/java/com/github/thomasdarimont/keycloak/server/KeycloakPlaygroundServer.java index d8180d9..a9112fc 100644 --- a/keycloak-playground-server/src/main/java/com/github/thomasdarimont/keycloak/server/KeycloakPlaygroundServer.java +++ b/keycloak-playground-server/src/main/java/com/github/thomasdarimont/keycloak/server/KeycloakPlaygroundServer.java @@ -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); +// } +// }