This repository has been archived on 2020-03-24. You can view files and clone it, but cannot push or open issues or pull requests.
quay/ci/tasks/mysql.yaml

24 lines
732 B
YAML
Raw Normal View History

2017-02-02 22:11:12 +00:00
---
platform: linux
inputs:
- name: quay-pull-request
run:
path: /bin/sh
args:
- -c
- |
set -eux
export TEST=true
export TEST_DATABASE_URI='mysql+pymysql://quay@127.0.0.1/genschema'
export SKIP_DB_SCHEMA=true
pip install --quiet -r quay-pull-request/requirements.txt
pip install --quiet -r quay-pull-request/requirements-tests.txt
service mysql start
mysqladmin create genschema
mysql -e "CREATE USER 'quay'@'127.0.0.1' IDENTIFIED BY '';"
mysql -e "GRANT ALL PRIVILEGES ON *.* TO 'quay'@'127.0.0.1';"
cd quay-pull-request
PYTHONPATH="." alembic upgrade head
2017-04-24 20:55:54 +00:00
PYTHONPATH="." py.test "." --ignore=endpoints/appr/test/
2017-02-02 22:11:12 +00:00
service mysql stop