Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a TravisCi file to build on a push to master and release JARs #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
language: java
jdk:
- openjdk11
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
- git clone [email protected]:keycloak/keycloak.git ../
- pushd ../keycloak; mvn clean install -DskipTests; pushd
- 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
12 changes: 12 additions & 0 deletions keycloak-playground-server/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -187,5 +187,17 @@
<version>${jackson.version}</version>
<type>jar</type>
</dependency>

<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>4.0.1</version>
</dependency>

<dependency>
<groupId>io.undertow</groupId>
<artifactId>undertow-servlet</artifactId>
<version>2.1.1.Final</version>
</dependency>
</dependencies>
</project>