Skip to content

Commit

Permalink
Enable s390x testsuite run
Browse files Browse the repository at this point in the history
Signed-off-by: Marko Strukelj <marko.strukelj@gmail.com>
  • Loading branch information
mstruk committed Feb 15, 2024
1 parent e108c65 commit cfb94a6
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
apt:
packages:
- maven
env:
- DOCKER_COMPOSE_VERSION=v2.24.5
before_install:
- sudo rm /usr/local/bin/docker-compose
- curl -L https://github.com/docker/compose/releases/download/${DOCKER_COMPOSE_VERSION}/docker-compose-`uname -s`-`uname -m` > docker-compose
- chmod +x docker-compose
- sudo mv docker-compose /usr/local/bin
- os: linux
arch: ppc64le
jdk: openjdk17
Expand Down
22 changes: 21 additions & 1 deletion .travis/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,27 @@ if [ "$arch" != 'ppc64le' ]; then
fi

# Run testsuite
if [ "$arch" != 'ppc64le' ] && [ "$arch" != 's390x' ]; then
if [ "$arch" == 's390x' ]; then
# Build s390x compatible hydra image
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/s390x-linux-gnu/jni

cd target
git clone -b 23.0.5 https://github.com/keycloak/keycloak.git
cd keycloak/quarkus/container
docker build . -t quay.io/keycloak/keycloak:23.0.5
cd ../../../.. && rm -rf target/keycloak

docker build --target hydra-import -t strimzi-oauth-testsuite/hydra-import:latest -f ./testsuite/docker/hydra-import/Dockerfile.s390x .
docker build --target oryd-hydra -t oryd/hydra:v1.8.5 -f ./testsuite/docker/hydra-import/Dockerfile.s390x .

mvn test-compile spotbugs:check -e -V -B -f testsuite
set +e
clearDockerEnv
mvn -e -V -B clean install -f testsuite -Pkafka-3_6_1
EXIT=$?
exitIfError
set -e
elif [[ "$arch" != 'ppc64le' ]]; then
mvn test-compile spotbugs:check -e -V -B -f testsuite $MAVEN_EXTRA_ARGS

set +e
Expand Down

0 comments on commit cfb94a6

Please sign in to comment.