tests: Allow coverage to write output from forked processes

This commit is contained in:
Lauri Võsandi 2017-05-03 07:13:24 +00:00
parent 649863a77e
commit 3586aee1d9
1 changed files with 2 additions and 1 deletions

View File

@ -16,10 +16,11 @@ install:
- sudo pip install codecov pytest-cov
- sudo pip install -e .
script:
- sudo find /home/ -type d -exec chmod 755 {} \;
- sudo find /home/ -type d -exec chmod 755 {} \; # Allow certidude serve to read templates
- sudo useradd adminbot -G sudo -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
- sudo useradd userbot -G users -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
- sudo adduser --system --no-create-home --group certidude
- sudo chmod 777 . # Allow forked processes to write .coverage files
- sudo coverage run --parallel-mode --source certidude -m py.test tests
- sudo coverage combine
- sudo coverage report