Skip to content

Commit

Permalink
Validate CAS webapp as executable war (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
mmoayyed authored Jan 9, 2022
1 parent 45db5fc commit 611e8cc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/initializr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
k3s-version: [ v1.22.3,v1.21.4 ] # v1.20.2,v1.19.7, v1.18.15, v1.17.17 v1.16.15
k3s-version: [ v1.22.5,v1.21.4 ] # v1.20.2,v1.19.7, v1.18.15, v1.17.17 v1.16.15
env:
GOPATH: /home/runner/go
steps:
Expand Down
13 changes: 13 additions & 0 deletions ci/validate-cas-overlay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,19 @@ else
exit 1
fi

echo "Running CAS Overlay as an executable WAR file"
./gradlew clean build -Pexecutable=true
./build/libs/cas.war --spring.profiles.active=none --server.ssl.enabled=false --server.port=8090 &
pid=$!
sleep 15
echo "Launched executable CAS with pid ${pid}. Waiting for CAS server to come online..."
until curl -k -L --output /dev/null --silent --fail http://localhost:8090/cas/login; do
echo -n '.'
sleep 5
done
echo -e "\n\nReady!"
kill -9 $pid

echo "Running CAS Overlay with bootRun"
./gradlew clean build bootRun -Dserver.ssl.enabled=false -Dserver.port=8090 &
pid=$!
Expand Down

0 comments on commit 611e8cc

Please sign in to comment.