Closed Potherca closed 4 years ago
This merge-request adds a script (based on runTests-dev.sh) that mounts a given local directory in the server-under-test.
runTests-dev.sh
This way it is trivial to run the test against a local server that is still under development.
The script requires a second parameter telling it where the directory is that should be mounted:
bash runTests-dev.sh 'php-solid-server' /path/to/php-solid-server
In comparison to the script it is based on, besides mounting a volume, this changes in this script:
trap
grep
docker rm
--rm
docker run
for
docker build
This merge-request adds a script (based on
runTests-dev.sh
) that mounts a given local directory in the server-under-test.This way it is trivial to run the test against a local server that is still under development.
The script requires a second parameter telling it where the directory is that should be mounted:
In comparison to the script it is based on, besides mounting a volume, this changes in this script:
trap
to stop the Docker container if the script only runs partially in case of errorsgrep
line to output the test resultsdocker rm
call to a--rm
flag on thedocker run
callfor
loopdocker build
step, as the used image is expected to already exist for development purposes