Commit ab26c82a authored by Samuel GAIST's avatar Samuel GAIST

[conda] Soft link manage.py to allow running tests

The manage.py scripts needs to be a the top of the project in order
to properly run the tests. Therefore for testing, a link is created
and removed when everything has run.
parent 76b10a7c
......@@ -73,6 +73,8 @@ test:
- rm -rf test.sql3
- rm -rf test_prefix
- ln -sf {{ project_dir }}/beat/web/scripts/manage.py manage.py
{% if environ.get('BEAT_DOCKER_TESTS', False) %}
- coverage run --source={{ project_dir }} manage.py test --settings=beat.web.settings.ci -v 2
{% else %}
......@@ -81,7 +83,7 @@ test:
- export BEAT_CMDLINE_TEST_PLATFORM=django://beat.web.settings.ci
- export COVERAGE_FILE=coverage.cmdline
- export NOSE_WITH_COVERAGE=1
- rm -rf test.sql3
- rm -f test.sql3 manage.py
{% if environ.get('BEAT_DOCKER_TESTS', False) %}
- nosetests -sv beat.cmdline
{% else %}
......
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