From 8aa9b9095e0fdd0292b190ad3ef469e3d161f98b Mon Sep 17 00:00:00 2001
From: Matthias Piepkorn <mpiepk@gmail.com>
Date: Wed, 23 Oct 2019 21:36:54 +0000
Subject: [PATCH] ci: build/test against openjdk 11

---
 .travis.yml |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index d0ebc81..8d758cd 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -5,7 +5,7 @@
   - "$HOME/.m2"
 
 jdk:
-- oraclejdk8
+- openjdk11
 
 sudo: required
 
@@ -13,20 +13,20 @@
   - docker
 
 env:
-  - KEYCLOAK_VERSION=4.5.0.Final
+  - KEYCLOAK_VERSION=7.0.0
 
 before_install:
-  - if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then docker pull jboss/keycloak:$KEYCLOAK_VERSION; fi
+  - if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then docker pull quay.io/keycloak/keycloak:$KEYCLOAK_VERSION; fi
 
 script:
   - if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then
       mvn test package -B &&
       mkdir target/docker &&
       cp target/*.jar target/docker/keycloak-protocol-cas.jar &&
-      echo "FROM jboss/keycloak:$KEYCLOAK_VERSION" > target/docker/Dockerfile &&
+      echo "FROM quay.io/keycloak/keycloak:$KEYCLOAK_VERSION" > target/docker/Dockerfile &&
       echo "ADD keycloak-protocol-cas.jar /opt/jboss/keycloak/standalone/deployments/" >> target/docker/Dockerfile &&
       cd target/docker && docker build -t doccrazy/keycloak-cas . && cd ../.. &&
-      docker run -d -p 127.0.0.1:8080:8080 --name keycloak -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin doccrazy/keycloak-cas && sleep 30 &&
+      docker run -d -p 127.0.0.1:8080:8080 --name keycloak -e KEYCLOAK_USER=admin -e KEYCLOAK_PASSWORD=admin doccrazy/keycloak-cas && sleep 60 &&
       docker logs keycloak &&
       docker exec -t keycloak /opt/jboss/keycloak/bin/kcadm.sh config credentials --server http://localhost:8080/auth --realm master --user admin --password admin &&
       docker exec -t keycloak /opt/jboss/keycloak/bin/kcadm.sh create clients -r master -s clientId=test -s protocol=cas -s enabled=true -s publicClient=true -s 'redirectUris=["http://localhost/*"]' -s baseUrl=http://localhost -s adminUrl=http://localhost &&

--
Gitblit v1.9.1