mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-23 18:19:39 +00:00
Shellcheck (https://github.com/koalaman/shellcheck) can identify common errors in shell scripts. This initial integration of shellcheck only checks the scripts in the 'scripts/' folder. This commit fixes (or disables) all reports of shellcheck to ensure this part starts error free. I am not convinced this is really necessary as most changes do not seem to be necessary for their circumstances. On the other hand it probably does not hurt to use a checker to avoid unnecessary errors. Signed-off-by: Adrian Reber <areber@redhat.com>
20 lines
509 B
Bash
Executable file
20 lines
509 B
Bash
Executable file
#!/bin/bash
|
|
|
|
cd ../.. || exit 1
|
|
|
|
failures=""
|
|
|
|
docker build -t criu-openj9-ubuntu-test:latest -f scripts/build/Dockerfile.openj9-ubuntu .
|
|
if ! docker run --rm --privileged criu-openj9-ubuntu-test:latest; then
|
|
failures="$failures ubuntu"
|
|
fi
|
|
|
|
docker build -t criu-openj9-alpine-test:latest -f scripts/build/Dockerfile.openj9-alpine .
|
|
if ! docker run --rm --privileged criu-openj9-alpine-test:latest; then
|
|
failures="$failures alpine"
|
|
fi
|
|
|
|
if [ -n "$failures" ]; then
|
|
echo "Tests failed on $failures"
|
|
exit 1
|
|
fi
|