diff options
author | Nidhi Gupta <itsnidhi16@gmail.com> | 2019-11-05 12:49:25 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2020-02-04 23:39:04 +0300 |
commit | 2b4e653361ec0c3b827fb4af4e0b8848fb9a26f0 (patch) | |
tree | b6fb584bd0a5ace6e784a1a0e25dd441dbd07c65 /scripts/travis | |
parent | f3cca97d80c77a6f2b9702edc8225ea8bb6034e5 (diff) |
Run java functional tests on travis
Signed-off-by: Nidhi Gupta <itsnidhi16@gmail.com>
Diffstat (limited to 'scripts/travis')
-rw-r--r-- | scripts/travis/Makefile | 3 | ||||
-rwxr-xr-x | scripts/travis/openj9-test.sh | 22 |
2 files changed, 25 insertions, 0 deletions
diff --git a/scripts/travis/Makefile b/scripts/travis/Makefile index baddd6eb1..c6b67935b 100644 --- a/scripts/travis/Makefile +++ b/scripts/travis/Makefile @@ -41,5 +41,8 @@ docker-test: podman-test: ./podman-test.sh +openj9-test: + ./openj9-test.sh + %: $(MAKE) -C ../build $@$(target-suffix) diff --git a/scripts/travis/openj9-test.sh b/scripts/travis/openj9-test.sh new file mode 100755 index 000000000..968f064f8 --- /dev/null +++ b/scripts/travis/openj9-test.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +cd ../.. + +failures="" + +docker build -t criu-openj9-ubuntu-test:latest -f scripts/build/Dockerfile.openj9-ubuntu . +docker run --rm --privileged criu-openj9-ubuntu-test:latest +if [ $? -ne 0 ]; then + failures=`echo "$failures ubuntu"` +fi + +docker build -t criu-openj9-alpine-test:latest -f scripts/build/Dockerfile.openj9-alpine . +docker run --rm --privileged criu-openj9-alpine-test:latest +if [ $? -ne 0 ]; then + failures=`echo "$failures alpine"` +fi + +if [ -n "$failures" ]; then + echo "Tests failed on $failures" + exit 1 +fi |