travis: Preserve environment for sudo

This commit is contained in:
Lauri Võsandi 2017-12-30 20:09:58 +02:00
parent b879b17324
commit fccabddab5
1 changed files with 7 additions and 7 deletions

View File

@ -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