Add basic Travis CI configuration

This commit is contained in:
Luke Murphy 2019-08-28 18:16:39 +02:00
parent 19dbe87167
commit 6365a26cd3
No known key found for this signature in database
GPG key ID: 5E2EF5A63E3718CC
5 changed files with 42 additions and 4 deletions

View file

@ -1,5 +1,16 @@
language: python
install: "pip install pytest pyyaml"
python:
- "2.7"
script: "py.test tests"
matrix:
allow_failures:
- env: TOXENV=lint
include:
- python: 2.7
env: TOXENV=py27
- python: 2.7
env: TOXENV=lint
install:
- pip install tox
script:
- tox

View file

@ -1,3 +1,6 @@
[![Build Status](https://travis-ci.org/YunoHost/yunohost.svg?branch=stretch-unstable)](https://travis-ci.org/YunoHost/yunohost)
[![GitHub license](https://img.shields.io/github/license/YunoHost/yunohost)](https://github.com/YunoHost/yunohost/blob/stretch-unstable/LICENSE)
# YunoHost core
This repository is the core of YunoHost code.

4
pytest.ini Normal file
View file

@ -0,0 +1,4 @@
[pytest]
addopts = -s -v
norecursedirs = dist doc build .tox .eggs
testpaths = tests/

2
setup.cfg Normal file
View file

@ -0,0 +1,2 @@
[flake8]
ignore = E501,E128,E731,E722

18
tox.ini Normal file
View file

@ -0,0 +1,18 @@
[tox]
envlist =
py27
lint
skipdist = True
[testenv]
skip_install=True
deps =
pytest >= 4.6.3, < 5.0
pyyaml >= 5.1.2, < 6.0
commands =
pytest {posargs}
[testenv:lint]
skip_install=True
commands = flake8 src doc data tests
deps = flake8