Skip to content
Snippets Groups Projects
Commit c43cabf7 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[ci] Fix coverage run

parent 7f5dd051
No related branches found
No related tags found
1 merge request!194Scheduler
Pipeline #
......@@ -8,15 +8,15 @@ py27-linux:
- unset TMPDIR
- cd src/cpulimit && make && cd -
- cd bin && ln -s ../src/cpulimit/src/cpulimit . && cd -
- export NOSE_WITH_COVERAGE=1
- export NOSE_COVER_PACKAGE=beat.web
- export COVERAGE_FILE=.coverage.django
- ./bin/django test --settings=beat.web.settings.test -v 2
- ./bin/coverage run --source='./beat/web' ./bin/django test --settings=beat.web.settings.test -v 2
- export BEAT_CMDLINE_TEST_PLATFORM=django://beat.web.settings.test
- export COVERAGE_FILE=.coverage.cmdline
- export NOSE_WITH_COVERAGE=1
- export NOSE_COVER_PACKAGE=beat.web
- ./bin/nosetests -sv beat.cmdline
- unset COVERAGE_FILE
- ./bin/coverage combine
- ./bin/coverage combine .coverage.django .coverage.cmdline
- ./bin/coverage report
- ./bin/sphinx-apidoc --separate -d 2 --output=doc/api/api beat beat/web/*/migrations beat/web/*/tests
- ./bin/sphinx-build doc/api html/api
......@@ -34,15 +34,15 @@ py27-macosx:
- ./bin/python --version
- cd src/cpulimit && make && cd -
- cd bin && ln -s ../src/cpulimit/src/cpulimit . && cd -
- export NOSE_WITH_COVERAGE=1
- export NOSE_COVER_PACKAGE=beat.web
- export COVERAGE_FILE=.coverage.django
- ./bin/django test --settings=beat.web.settings.test -v 2
- ./bin/coverage run --source='./beat/web' ./bin/django test --settings=beat.web.settings.test -v 2
- export BEAT_CMDLINE_TEST_PLATFORM=django://beat.web.settings.test
- export COVERAGE_FILE=.coverage.cmdline
- export NOSE_WITH_COVERAGE=1
- export NOSE_COVER_PACKAGE=beat.web
- ./bin/nosetests -sv beat.cmdline
- unset COVERAGE_FILE
- ./bin/coverage combine
- ./bin/coverage combine .coverage.django .coverage.cmdline
- ./bin/coverage report
- ./bin/sphinx-apidoc --separate -d 2 --output=doc/api/api beat beat/web/*/migrations beat/web/*/tests
- ./bin/sphinx-build doc/api html/api
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment