Skip to content

Instantly share code, notes, and snippets.

@samalba
Last active December 22, 2015 11:29
Show Gist options
  • Save samalba/6465780 to your computer and use it in GitHub Desktop.
Save samalba/6465780 to your computer and use it in GitHub Desktop.
Run docker-registry tests in docker-ci
#!/bin/sh
# NOTE: Run from the docker-registry root directory
# Setup the environment
export SETTINGS_FLAVOR=test
export DOCKER_REGISTRY_CONFIG=config_test.yml
export DOCKER_CREDS=REPLACE:ME
export S3_ACCESS_KEY=REPLACEME
export S3_SECRET_KEY=REPLACEME
export S3_BUCKET=REPLACEME
# Install requirements
pip install -r requirements.txt
pip install -r test-requirements.txt
pip install tox
# Run unit tests
tox
# Run functionnal tests
python -m unittest discover -p s3.py -s test
python -m unittest discover -p workflow.py -s test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment