Restore tests

This commit is contained in:
2020-03-22 12:40:58 +03:00
parent 4a18dc5808
commit eb66b6904d
9 changed files with 110 additions and 164 deletions

View File

@ -9,14 +9,19 @@ CONTAINER_CACHE_DIR=/tmp/.npm
mkdir -p ${HOST_CACHE_DIR}
TTY=
if [ -t 1 ] ; then
TTY=--tty
fi
docker run \
--rm \
--interactive \
--tty \
${TTY} \
--init \
--user "$UID:$(id -g)" \
--volume "$PWD:/srv/app" \
--volume "$PWD:/app" \
--env npm_config_cache="${CONTAINER_CACHE_DIR}" \
--workdir /srv/app \
--workdir /app \
${NODE_IMAGE} \
npm "$@"