mirror of https://github.com/docker/docs.git
13 lines
331 B
Bash
Executable File
13 lines
331 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -x
|
|
set -e
|
|
PROJECT_PATH=$1
|
|
|
|
# Build the docker project
|
|
cd /data/$PROJECT_PATH
|
|
sg docker -c "docker build -q -t registry ."
|
|
cd test; sg docker -c "docker build -q -t docker-registry-test ."
|
|
|
|
# Run the tests
|
|
sg docker -c "docker run --rm -v /home/docker-ci/coverage/docker-registry:/data docker-registry-test"
|