mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-23 00:25:18 +00:00
tests: Allow coverage to write output from forked processes
This commit is contained in:
parent
649863a77e
commit
3586aee1d9
@ -16,10 +16,11 @@ install:
|
|||||||
- sudo pip install codecov pytest-cov
|
- sudo pip install codecov pytest-cov
|
||||||
- sudo pip install -e .
|
- sudo pip install -e .
|
||||||
script:
|
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 adminbot -G sudo -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
|
||||||
- sudo useradd userbot -G users -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
|
- sudo useradd userbot -G users -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
|
||||||
- sudo adduser --system --no-create-home --group certidude
|
- 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 run --parallel-mode --source certidude -m py.test tests
|
||||||
- sudo coverage combine
|
- sudo coverage combine
|
||||||
- sudo coverage report
|
- sudo coverage report
|
||||||
|
Loading…
Reference in New Issue
Block a user