2013-10-27 15:13:03 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -x
|
|
|
|
|
2013-11-06 23:05:26 -05:00
|
|
|
# Setup the environment
|
2013-10-27 15:13:03 -04:00
|
|
|
REGISTRY_PATH=/data/docker-registry
|
2013-11-06 23:05:26 -05:00
|
|
|
export SETTINGS_FLAVOR=test
|
|
|
|
export DOCKER_REGISTRY_CONFIG=config_test.yml
|
|
|
|
export PYTHONPATH=$REGISTRY_PATH/test
|
2013-10-27 15:13:03 -04:00
|
|
|
|
|
|
|
# Fetch latest docker-registry master
|
|
|
|
rm -rf $REGISTRY_PATH
|
|
|
|
git clone https://github.com/dotcloud/docker-registry -b master $REGISTRY_PATH
|
|
|
|
cd $REGISTRY_PATH
|
|
|
|
|
|
|
|
# Generate coverage
|
|
|
|
coverage run -m unittest discover test || exit 1
|
|
|
|
coverage report --include='./*' --omit='./test/*'
|