mirror of
https://github.com/laurivosandi/certidude
synced 2024-11-04 20:38:12 +00:00
travis: Attempt to avoid Travis' Python magic
This commit is contained in:
parent
fccabddab5
commit
79ae57dc04
25
.travis.yml
25
.travis.yml
@ -1,24 +1,22 @@
|
|||||||
sudo: required
|
sudo: required
|
||||||
language: python
|
language: generic
|
||||||
dist: trusty
|
dist: trusty
|
||||||
python:
|
env:
|
||||||
- "3.4"
|
- COVERAGE_FILE=/tmp/.coverage
|
||||||
after_success:
|
after_success:
|
||||||
- codecov
|
- codecov
|
||||||
virtualenv:
|
|
||||||
system_site_packages: true
|
|
||||||
install:
|
install:
|
||||||
- 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 -E pip install -r requirements.txt
|
- sudo easy_install3 pip
|
||||||
- sudo -E pip install codecov pytest-cov requests-kerberos
|
- sudo pip3 install -r requirements.txt
|
||||||
- sudo -E pip install -e .
|
- sudo pip3 install codecov pytest-cov requests-kerberos
|
||||||
|
- sudo pip3 install -e .
|
||||||
script:
|
script:
|
||||||
- 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 chmod 777 . # Allow forked processes to write .coverage files
|
- sudo coverage run --parallel-mode --source certidude -m py.test tests
|
||||||
- sudo -E coverage run --parallel-mode --source certidude -m py.test tests
|
- sudo coverage combine
|
||||||
- sudo -E coverage combine
|
- sudo coverage report
|
||||||
- sudo -E coverage report
|
- sudo coverage xml -i
|
||||||
- sudo -E coverage xml -i
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- $HOME/.cache/pip
|
- $HOME/.cache/pip
|
||||||
@ -27,6 +25,7 @@ addons:
|
|||||||
apt:
|
apt:
|
||||||
packages:
|
packages:
|
||||||
- software-properties-common
|
- software-properties-common
|
||||||
|
- python3-setuptools
|
||||||
- python3-click
|
- python3-click
|
||||||
- python3-mysql.connector
|
- python3-mysql.connector
|
||||||
- python3-pyxattr
|
- python3-pyxattr
|
||||||
|
Loading…
Reference in New Issue
Block a user