2017-04-25 19:14:25 +00:00
|
|
|
sudo: required
|
2015-09-09 05:46:01 +00:00
|
|
|
language: python
|
2017-03-26 21:20:03 +00:00
|
|
|
dist: trusty
|
2015-09-09 05:46:01 +00:00
|
|
|
python:
|
2016-03-27 21:00:41 +00:00
|
|
|
- "2.7"
|
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-01 17:10:11 +00:00
|
|
|
- echo "127.0.0.1 localhost" | sudo tee /etc/hosts
|
2017-05-01 22:32:55 +00:00
|
|
|
- echo "127.0.1.1 ca.example.lan ca" | sudo tee -a /etc/hosts
|
2017-05-03 21:03:51 +00:00
|
|
|
- echo "127.0.0.1 vpn.example.lan vpn" | sudo tee -a /etc/hosts
|
|
|
|
- echo "127.0.0.1 www.example.lan www" | sudo tee -a /etc/hosts
|
|
|
|
- sudo mkdir -p /etc/systemd/system
|
2017-05-01 17:23:59 +00:00
|
|
|
- sudo pip install -r requirements.txt
|
|
|
|
- sudo pip install codecov pytest-cov
|
2017-05-01 23:32:01 +00:00
|
|
|
- sudo 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
|
2017-04-25 19:14:25 +00:00
|
|
|
- sudo useradd adminbot -G sudo -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
|
|
|
|
- sudo useradd userbot -G users -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
|
2017-05-03 07:13:24 +00:00
|
|
|
- sudo chmod 777 . # Allow forked processes to write .coverage files
|
2017-05-03 07:04:52 +00:00
|
|
|
- sudo coverage run --parallel-mode --source certidude -m py.test tests
|
|
|
|
- sudo coverage combine
|
|
|
|
- sudo coverage report
|
|
|
|
- sudo coverage xml
|
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-04-13 20:52:09 +00:00
|
|
|
- python-configparser
|