Files
gotenberg/build/tests/docker-entrypoint.sh
2019-08-20 10:45:56 +02:00

17 lines
344 B
Bash
Executable File

#!/bin/bash
set -xe
# Make sure the user running the
# tests is the Gotenberg user.
CURRENT_USER=$(whoami)
if [ "$CURRENT_USER" != "gotenberg" ]; then
exit 1
fi
# Start the PM2 processes
# (Google Chrome headless & unoconv listener).
go run github.com/thecodingmachine/gotenberg/test/cmd/pm2
# Run our tests.
go test -race -cover ./...