2017-04-25 19:14:25 +00:00
|
|
|
sudo: required
|
2015-09-09 05:46:01 +00:00
|
|
|
language: python
|
2017-05-08 16:25:59 +00:00
|
|
|
dist: trusty
|
2015-09-09 05:46:01 +00:00
|
|
|
python:
|
2017-12-30 13:57:48 +00:00
|
|
|
- "3.4"
|
2015-10-08 10:46:12 +00:00
|
|
|
after_success:
|
2017-05-01 23:32:01 +00:00
|
|
|
- codecov
|
2016-03-27 21:00:41 +00:00
|
|
|
virtualenv:
|
|
|
|
system_site_packages: true
|
2015-09-09 05:46:01 +00:00
|
|
|
install:
|
2017-05-08 16:25:59 +00:00
|
|
|
- sudo mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04
|
2017-12-30 18:09:58 +00:00
|
|
|
- sudo -E pip install -r requirements.txt
|
|
|
|
- sudo -E pip install codecov pytest-cov requests-kerberos
|
|
|
|
- sudo -E pip install -e .
|
2015-10-08 10:46:12 +00:00
|
|
|
script:
|
2017-05-03 07:13:24 +00:00
|
|
|
- sudo find /home/ -type d -exec chmod 755 {} \; # Allow certidude serve to read templates
|
|
|
|
- sudo chmod 777 . # Allow forked processes to write .coverage files
|
2017-12-30 18:09:58 +00:00
|
|
|
- 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
|
2015-09-29 12:38:06 +00:00
|
|
|
cache:
|
|
|
|
directories:
|
|
|
|
- $HOME/.cache/pip
|
2016-09-18 15:30:31 +00:00
|
|
|
addons:
|
2017-05-01 16:20:50 +00:00
|
|
|
hostname: ca
|
2016-09-18 15:30:31 +00:00
|
|
|
apt:
|
|
|
|
packages:
|
2017-05-06 21:07:41 +00:00
|
|
|
- software-properties-common
|
2017-12-30 15:22:01 +00:00
|
|
|
- python3-click
|
|
|
|
- python3-mysql.connector
|
|
|
|
- python3-pyxattr
|