Skip to content

Commit

Permalink
Add basic Travis CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
decentral1se committed Aug 28, 2019
1 parent 19dbe87 commit 6365a26
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions pytest.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[pytest]
addopts = -s -v
norecursedirs = dist doc build .tox .eggs
testpaths = tests/
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
ignore = E501,E128,E731,E722
18 changes: 18 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 6365a26

Please sign in to comment.