Database settings
@@ -11,6 +11,12 @@ jobs:
- image: circleci/python:3.6.4
environment:
SECRET_KEY: abcd
+ DATABASE_URL: mysql://root:password@127.0.0.1/promgen?charset=utf8mb4
+ - image: mysql:5.7
+ command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci
+ environment:
+ MYSQL_ROOT_PASSWORD: password
+ MYSQL_DATABASE: test_promgen
steps:
- checkout
- run:
@@ -23,8 +29,8 @@ jobs:
- run: mkdir -p test-results
- run: python3 -m venv .venv
- run: .venv/bin/pip install -r docker/requirements.txt
- - run: .venv/bin/pip install -e .[dev]
- - run: .venv/bin/promgen test --with-xunit --xunit-file test-results/nosetests.xml
+ - run: .venv/bin/pip install -e .[dev,mysql]
+ - run: .venv/bin/promgen test --with-xunit --xunit-file test-results/nosetests.xml --noinput
- run: .venv/bin/codecov
- store_test_results:
path: test-results
