mirror of https://github.com/jacekkow/keycloak-protocol-cas

matthiasp
2017-09-18 97fc5ea8d44b25210560c6251a2786e96a9a4e0c
commit | author | age
b8c874 1 language: java
MP 2
3 cache:
4   directories:
5   - "$HOME/.m2"
6
7 jdk:
8 - oraclejdk8
9
a3c58c 10 sudo: required
MP 11
12 services:
13   - docker
14
15 env:
f75caf 16 #  - KEYCLOAK_VERSION=2.5.5.Final
MP 17 #  - KEYCLOAK_VERSION=3.0.0.Final
18 #  - KEYCLOAK_VERSION=3.1.0.Final
19   - KEYCLOAK_VERSION=3.2.1.Final
97fc5e 20   - KEYCLOAK_VERSION=3.3.0.CR2
a3c58c 21
MP 22 before_install:
23   - docker pull jboss/keycloak:$KEYCLOAK_VERSION
24
25 script:
26   - mvn test package -B &&
27     mkdir target/docker &&
28     cp target/*.jar target/docker/keycloak-protocol-cas.jar &&
29     echo "FROM jboss/keycloak:$KEYCLOAK_VERSION" > target/docker/Dockerfile &&
30     echo "ADD keycloak-protocol-cas.jar /opt/jboss/keycloak/standalone/deployments/" >> target/docker/Dockerfile &&
31     cd target/docker && docker build -t doccrazy/keycloak-cas . && cd ../.. &&
32     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 &&
33     docker logs keycloak &&
34     docker exec -t keycloak /opt/jboss/keycloak/bin/kcadm.sh config credentials --server http://localhost:8080/auth --realm master --user admin --password admin &&
35     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 &&
36     docker exec -t keycloak /opt/jboss/keycloak/bin/kcadm.sh get serverinfo -r master --fields "providers(login-protocol(providers(cas)))" | grep cas &&
33112b 37     integrationTest/suite.sh
b8c874 38
MP 39 before_deploy:
40   - "mvn -DskipTests package"
41   - export RELEASE_JAR=$(ls target/keycloak-protocol-cas-*.jar)
42
43 deploy:
44   provider: releases
45   api_key:
46     secure: BPcU12jQ4qs1xAq+Y+6bax+g1AdLatg5E645ISr/NLaKDuWNZxzpMLPf/w9+ngvV5ap5qTz8neoeEbVCLncaIT8wBqlaZnaSnFvVS1huUnwqbh8DzzC6Fmh8DoREpoGo/LV+He1N76bd/lpu0f8VoEqZDtgNYyPAn3xNif+tng8Xa1yh55PqaxB5XlXrArouKCv4jPf+AqzQUMr40Xgn/aQxra6H8PZiEJnxXtweC+UyMNGs5VZkm6nOUW/cpSBppEl6BxyLzJrM2b2pAXQSb85f2EBAIwN38PipwSdckC/3AIhI5Skrx9fEeiuW/YzsZKl7XTohn45fzirc6EzsGBvLucsIda+qMp6Zf4sd8uM0XgiQ1NJyOxWFVFyg3JP00OmJW4BgumfZTL4lzcDUVhn5DubgqZZM3sqvoz75MUSBYewTo3hLBlqxjVA8qe8S738mlNVcpDjwAuAM7/2UP+hcypnjKttQBFt965+yfxjSs3B+KLRQLp7UTmQ+fTcEr72AenQFoXuVpO0k6ghKYomNLLFOzlLk2JCWtsVirjWzJQTZKP5m23jf4qbfyDM3HDenL+N8l3ZOups9gtGpioxkUGKz2IPHrz7XTwh10OpZi32jOPS2BfFOXUQMNVlZAfbIAwXnbo2DWC0AB2Fz//bJbjF9TnOGTUIODos6joo=
47   file: "${RELEASE_JAR}"
a3c58c 48   skip_cleanup: true
b8c874 49   on:
MP 50     tags: true
51     repo: Doccrazy/keycloak-protocol-cas