2017-04-25 19:14:25 +00:00
|
|
|
sudo: required
|
2017-12-30 18:19:24 +00:00
|
|
|
language: generic
|
2017-05-08 16:25:59 +00:00
|
|
|
dist: trusty
|
2017-12-30 18:19:24 +00:00
|
|
|
env:
|
|
|
|
- COVERAGE_FILE=/tmp/.coverage
|
2015-10-08 10:46:12 +00:00
|
|
|
after_success:
|
2017-05-01 23:32:01 +00:00
|
|
|
- codecov
|
2017-12-30 18:34:43 +00:00
|
|
|
script:
|
2018-04-10 10:05:08 +00:00
|
|
|
- echo registry=http://registry.npmjs.org/ | sudo tee /root/.npmrc
|
2017-12-30 18:34:43 +00:00
|
|
|
- sudo apt install software-properties-common python3-setuptools python3-mysql.connector python3-pyxattr
|
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:19:24 +00:00
|
|
|
- sudo easy_install3 pip
|
2018-02-03 12:46:55 +00:00
|
|
|
- sudo -H pip3 install -r requirements.txt
|
|
|
|
- sudo -H pip3 install codecov pytest-cov requests-kerberos
|
|
|
|
- sudo -H pip3 install -e .
|
2017-12-30 18:34:43 +00:00
|
|
|
- echo ca | sudo tee /etc/hostname
|
2017-12-30 18:38:35 +00:00
|
|
|
- echo 127.0.0.1 localhost | sudo tee /etc/hosts
|
2017-12-30 18:28:48 +00:00
|
|
|
- echo 127.0.1.1 ca.example.lan ca | sudo tee -a /etc/hosts
|
2017-12-30 18:34:43 +00:00
|
|
|
- sudo hostname -F /etc/hostname
|
2017-05-03 07:13:24 +00:00
|
|
|
- sudo find /home/ -type d -exec chmod 755 {} \; # Allow certidude serve to read templates
|
2018-04-10 16:03:15 +00:00
|
|
|
- sudo coverage run --parallel-mode --source certidude -m py.test tests --capture=sys
|
2017-12-30 18:19:24 +00:00
|
|
|
- sudo coverage combine
|
|
|
|
- sudo coverage report
|
|
|
|
- sudo coverage xml -i
|
2018-02-03 12:39:06 +00:00
|
|
|
cache: pip
|