mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Tests: run benchmarks in container via Docker
This commit is contained in:
13
test/bench/run-with-docker.sh
Executable file
13
test/bench/run-with-docker.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
set -e
|
||||
|
||||
if ! type docker >/dev/null; then
|
||||
echo "Please install docker"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
BRANCH=$(git branch --show-current)
|
||||
echo "Running sharp performance tests using $BRANCH branch"
|
||||
|
||||
docker build --build-arg "BRANCH=$BRANCH" -t sharp-test-bench .
|
||||
docker run --rm -it sharp-test-bench
|
||||
Reference in New Issue
Block a user