./tests.sh -a # run tests on all OpenRefine versions (from 2.0 up to 3.2)
./tests.sh -t 3.2 # run tests on tag 3.2
./tests.sh -t 3.2 -i # run tests on tag 3.2 interactively (pause before and after tests)
./tests.sh -t 3.2 -t 2.7 # run tests on tags 3.2 and 2.7
Advanced:
./tests.sh -j # run tests on all OpenRefine versions and each with all supported Java versions (requires a lot of docker images to be downloaded!)
./tests.sh -t 3.1 -i -p 3334# run tests on tag 3.1 interactively on port 3334
Running tests interactively (-i) allows you to examine OpenRefine GUI at http://localhost:3333.
Execute the script concurrently in another terminal on another port (-p 3334) to compare changes in the OpenRefine GUI at http://localhost:3333 and http://localhost:3334.
echo 1>&2"This action requires you to have 'docker' installed and present in your PATH. You can download it for free at http://www.docker.com/"
exit1
fi
DOCKERINFO="$(docker info 2>/dev/null | grep 'Server Version')"
if[ -z "$DOCKERINFO"]
then
echo"command 'docker info' failed, trying again with sudo..."
DOCKERINFO="$(sudo docker info 2>/dev/null | grep 'Server Version')"
echo"OK"
docker=(sudo docker)
if[ -z "$DOCKERINFO"];then
echo 1>&2"This action requires you to start the docker daemon. Try 'sudo systemctl start docker' or 'sudo start docker'. If the docker daemon is already running then maybe some security privileges are missing to run docker commands.'"
exit1
fi
else
docker=(docker)
fi
CURLINFO="$(command -v curl 2>/dev/null)"
if[ -z "$CURLINFO"];then
echo 1>&2"This action requires you to have 'curl' installed and present in your PATH."