#!/bin/bash
IMAGE_NAME=pecl-igbinary-s390x-emulated-8.0.13
docker build --platform S390X --tag=$IMAGE_NAME --build-arg=PHP_VERSION=8.0.13 -f docker/Dockerfile . || exit 1
exec docker run --rm --platform S390X $IMAGE_NAME /bin/bash -c 'export CFLAGS=-O1; make test TESTS="--show-diff -j$(nproc)"'
