certidude/.travis.yml

33 lines
880 B
YAML
Raw Normal View History

2017-04-25 19:14:25 +00:00
sudo: required
language: generic
dist: trusty
env:
- COVERAGE_FILE=/tmp/.coverage
2015-10-08 10:46:12 +00:00
after_success:
- codecov
2015-09-09 05:46:01 +00:00
install:
- sudo mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04
- sudo easy_install3 pip
- sudo pip3 install -r requirements.txt
- sudo pip3 install codecov pytest-cov requests-kerberos
- sudo pip3 install -e .
2017-12-30 18:28:48 +00:00
- echo 127.0.1.1 ca.example.lan ca | sudo tee -a /etc/hosts
2015-10-08 10:46:12 +00:00
script:
- sudo find /home/ -type d -exec chmod 755 {} \; # Allow certidude serve to read templates
- sudo coverage run --parallel-mode --source certidude -m py.test tests
- sudo coverage combine
- sudo coverage report
- sudo 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:
hostname: ca
2016-09-18 15:30:31 +00:00
apt:
packages:
- software-properties-common
- python3-setuptools
2017-12-30 15:22:01 +00:00
- python3-click
- python3-mysql.connector
- python3-pyxattr