From 85656db39909fe0ad698af467afee3adc472882b Mon Sep 17 00:00:00 2001 From: Paul Traylor Date: Fri, 28 Feb 2020 10:14:37 +0900 Subject: [PATCH] Database settings --- .circleci/config.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 88d3d4598..73c214eb1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,12 @@ jobs: - image: circleci/python:3.6.4 environment: SECRET_KEY: abcd + DATABASE_URL: mysql://root:rootpw@localhost/promgen?charset=utf8mb4 + - image: circleci/mysql:8.0.4 + environment: + MYSQL_ROOT_PASSWORD: rootpw + MYSQL_DATABASE: test_promgen + MYSQL_USER: root steps: - checkout - run: @@ -23,7 +29,7 @@ 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/pip install -e .[dev,mysql] - run: .venv/bin/promgen test --with-xunit --xunit-file test-results/nosetests.xml - run: .venv/bin/codecov - store_test_results: