From 7cca99fd7ad119c27665488e28ceb86800afd574 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 2 Feb 2023 18:23:17 +0100 Subject: add Docker tests for older bash-es --- test/docker-compose.yml | 7 +++++++ test/test.sh | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 test/docker-compose.yml (limited to 'test') diff --git a/test/docker-compose.yml b/test/docker-compose.yml new file mode 100644 index 0000000..2d7f094 --- /dev/null +++ b/test/docker-compose.yml @@ -0,0 +1,7 @@ +version: '3' +services: + test: + image: "ubuntu:${DISTRO:-xenial}" + volumes: + - ../:/src + command: /src/test/test.sh diff --git a/test/test.sh b/test/test.sh index 05c5d65..e28f112 100755 --- a/test/test.sh +++ b/test/test.sh @@ -1,7 +1,8 @@ #!/usr/bin/env bash set -o errexit -o nounset -o pipefail -shopt -s inherit_errexit lastpipe +shopt -s inherit_errexit 2> /dev/null || true +shopt -s lastpipe script_dir="$( dirname -- "${BASH_SOURCE[0]}" )" script_dir="$( cd -- "$script_dir" && pwd )" -- cgit v1.2.3