1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-09-21 02:08:11 +00:00
certidude/.travis.yml
2017-05-01 17:13:35 +00:00

30 lines
772 B
YAML

sudo: required
language: python
dist: trusty
python:
- "2.7"
after_success:
- codecov
virtualenv:
system_site_packages: true
install:
- echo "127.0.0.1 localhost" | sudo tee /etc/hosts
- echo "127.0.0.1 ca.example.lan ca" | sudo tee -a /etc/hosts
- echo "127.0.0.1 vpn.koodur.lan" | sudo tee -a /etc/hosts
- pip install -r requirements.txt
- pip install codecov pytest-cov
- pip install --editable .
script:
- sudo useradd adminbot -G sudo -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
- sudo useradd userbot -G users -p '$1$PBkf5waA$n9EV6WJ7PS6lyGWkgeTPf1'
- sudo chmod 755 /etc/shadow
- py.test --cov-report xml --cov=certidude tests/
cache:
directories:
- $HOME/.cache/pip
addons:
hostname: ca
apt:
packages:
- python-configparser