1
0
mirror of https://github.com/laurivosandi/certidude synced 2024-12-23 00:25:18 +00:00

travis: Even less Travis magic

This commit is contained in:
Lauri Võsandi 2017-12-30 20:34:43 +02:00
parent 6fb7cbbcc7
commit d236af6b01

View File

@ -5,14 +5,16 @@ env:
- COVERAGE_FILE=/tmp/.coverage - COVERAGE_FILE=/tmp/.coverage
after_success: after_success:
- codecov - codecov
install: script:
- sudo apt install software-properties-common python3-setuptools python3-mysql.connector python3-pyxattr
- sudo mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04 - sudo mkdir -p /etc/systemd/system # Until Travis is stuck with 14.04
- sudo easy_install3 pip - sudo easy_install3 pip
- sudo pip3 install -r requirements.txt - sudo pip3 install -r requirements.txt
- sudo pip3 install codecov pytest-cov requests-kerberos - sudo pip3 install codecov pytest-cov requests-kerberos
- sudo pip3 install -e . - sudo pip3 install -e .
- echo ca | sudo tee /etc/hostname
- echo 127.0.1.1 ca.example.lan ca | sudo tee -a /etc/hosts - echo 127.0.1.1 ca.example.lan ca | sudo tee -a /etc/hosts
script: - sudo hostname -F /etc/hostname
- sudo find /home/ -type d -exec chmod 755 {} \; # Allow certidude serve to read templates - 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 run --parallel-mode --source certidude -m py.test tests
- sudo coverage combine - sudo coverage combine
@ -21,12 +23,3 @@ script:
cache: cache:
directories: directories:
- $HOME/.cache/pip - $HOME/.cache/pip
addons:
hostname: ca
apt:
packages:
- software-properties-common
- python3-setuptools
- python3-click
- python3-mysql.connector
- python3-pyxattr