Commit 90496e29 authored by okhin's avatar okhin

Let's create and drop a postgresql database needed for tox

parent 50089538
Pipeline #165 failed with stage
in 15 minutes and 1 second
...@@ -16,6 +16,7 @@ commands = ...@@ -16,6 +16,7 @@ commands =
{toxinidir}/src/memopol/bin/install_client_deps.sh {toxinidir}/src/memopol/bin/install_client_deps.sh
cp {toxinidir}/src/memopol/tests/local_settings.py {toxinidir}/src/memopol/local_settings.py cp {toxinidir}/src/memopol/tests/local_settings.py {toxinidir}/src/memopol/local_settings.py
py.test src/ py.test src/
createdb -U memopol_test -p 5433 $CI_BUILD_REF_NAME
memopol migrate memopol migrate
bash -c 'cat src/representatives/contrib/francedata/tests/representatives_input.json | francedata_import_representatives' bash -c 'cat src/representatives/contrib/francedata/tests/representatives_input.json | francedata_import_representatives'
bash -c 'cat src/representatives/contrib/parltrack/tests/representatives_fixture.json | parltrack_import_representatives' bash -c 'cat src/representatives/contrib/parltrack/tests/representatives_fixture.json | parltrack_import_representatives'
...@@ -24,9 +25,13 @@ commands = ...@@ -24,9 +25,13 @@ commands =
bash -c 'cat src/representatives_votes/contrib/francedata/tests/votes_input.json | francedata_import_votes' bash -c 'cat src/representatives_votes/contrib/francedata/tests/votes_input.json | francedata_import_votes'
bash -c 'cat src/representatives_votes/contrib/parltrack/tests/dossiers_fixture.json | parltrack_import_dossiers' bash -c 'cat src/representatives_votes/contrib/parltrack/tests/dossiers_fixture.json | parltrack_import_dossiers'
bash -c 'cat src/representatives_votes/contrib/parltrack/tests/votes_fixture.json | parltrack_import_votes' bash -c 'cat src/representatives_votes/contrib/parltrack/tests/votes_fixture.json | parltrack_import_votes'
dropdb -U memopol_test -p 5433 $CI_BUILD_REF_NAME
whitelist_externals = whitelist_externals =
psql psql
cp
createdb
dropdb
[testenv:qa] [testenv:qa]
skipsdist=True skipsdist=True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment