1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-22 16:25:17 +00:00

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

View File

@ -9,16 +9,16 @@ virtualenv:
system_site_packages: true system_site_packages: true
install: install:
- sudo mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04 - sudo mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04
- sudo pip install -r requirements.txt - sudo -E pip install -r requirements.txt
- sudo pip install codecov pytest-cov requests-kerberos - sudo -E pip install codecov pytest-cov requests-kerberos
- sudo pip install -e . - sudo -E pip install -e .
script: script:
- sudo find /home/ -type d -exec chmod 755 {} \; # Allow certidude serve to read templates - 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 chmod 777 . # Allow forked processes to write .coverage files
- sudo coverage run --parallel-mode --source certidude -m py.test tests - sudo -E coverage run --parallel-mode --source certidude -m py.test tests
- sudo coverage combine - sudo -E coverage combine
- sudo coverage report - sudo -E coverage report
- sudo coverage xml -i - sudo -E coverage xml -i
cache: cache:
directories: directories:
- $HOME/.cache/pip - $HOME/.cache/pip