From 960eee9a873dae693d3229f32db796d16e40b088 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 | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 88d3d4598..06fec6e4a 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -11,6 +11,11 @@ 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 + environment: + MYSQL_ROOT_PASSWORD: password + MYSQL_DATABASE: test_promgen steps: - checkout - run: @@ -23,8 +28,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