Merge pull request #787 from decentral1se/travis-ci-getting-started

Add basic Travis CI configuration
This commit is contained in:
decentral1se 2019-09-11 00:28:14 +01:00 committed by GitHub
commit f74ccb85ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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