docker based tests

This commit is contained in:
Girish Ramakrishnan
2024-09-22 11:12:49 +02:00
parent 27f7bcd040
commit 9bb4c8127e
10 changed files with 37 additions and 21 deletions
+1 -1
View File
@@ -49,5 +49,5 @@ if [[ $# -gt 0 ]]; then
fi
echo "=> Run tests"
docker run -e BOX_ENV=test -e DATABASE_HOSTNAME=${MYSQL_IP} -v `pwd`:/home/yellowtent/box:ro -v `which node`:/usr/bin/node:ro -t cloudron/boxtest node_modules/.bin/mocha --bail --no-timeouts --colors --exit -R spec src/test
docker run -e BOX_ENV=test -e DATABASE_HOSTNAME=${MYSQL_IP} -v `pwd`:/home/yellowtent/box:ro -v `which node`:/usr/bin/node:ro -v /var/run/docker.sock:/var/run/docker.sock -t cloudron/boxtest node_modules/.bin/mocha --bail --no-timeouts --colors --exit -R spec src/test