| | |
| | | - KEYCLOAK_VERSION=4.1.0.Final |
| | | |
| | | before_install: |
| | | - docker pull jboss/keycloak:$KEYCLOAK_VERSION |
| | | - if [ "$TRAVIS_EVENT_TYPE" != "cron" ]; then docker pull jboss/keycloak:$KEYCLOAK_VERSION; fi |
| | | |
| | | script: |
| | | - mvn test package -B && |
| | | - 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 && |
| | |
| | | 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 && |
| | | docker exec -t keycloak /opt/jboss/keycloak/bin/kcadm.sh get serverinfo -r master --fields "providers(login-protocol(providers(cas)))" | grep cas && |
| | | integrationTest/suite.sh |
| | | ; fi |
| | | - if [ "$TRAVIS_EVENT_TYPE" = "cron" ]; then ./update.sh; fi |
| | | |
| | | before_deploy: |
| | | - "mvn -DskipTests package" |