1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 08:15:18 +00:00

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

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