Last active
December 22, 2015 11:29
-
-
Save samalba/6465780 to your computer and use it in GitHub Desktop.
Run docker-registry tests in docker-ci
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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