mirror of
https://github.com/laurivosandi/certidude
synced 2024-12-22 08:15:18 +00:00
travis: Preserve environment for sudo
This commit is contained in:
parent
b879b17324
commit
fccabddab5
14
.travis.yml
14
.travis.yml
@ -9,16 +9,16 @@ virtualenv:
|
||||
system_site_packages: true
|
||||
install:
|
||||
- sudo mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04
|
||||
- sudo pip install -r requirements.txt
|
||||
- sudo pip install codecov pytest-cov requests-kerberos
|
||||
- sudo pip install -e .
|
||||
- sudo -E pip install -r requirements.txt
|
||||
- sudo -E pip install codecov pytest-cov requests-kerberos
|
||||
- sudo -E pip install -e .
|
||||
script:
|
||||
- sudo find /home/ -type d -exec chmod 755 {} \; # Allow certidude serve to read templates
|
||||
- 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
|
||||
- sudo coverage xml -i
|
||||
- sudo -E coverage run --parallel-mode --source certidude -m py.test tests
|
||||
- sudo -E coverage combine
|
||||
- sudo -E coverage report
|
||||
- sudo -E coverage xml -i
|
||||
cache:
|
||||
directories:
|
||||
- $HOME/.cache/pip
|
||||
|
Loading…
Reference in New Issue
Block a user