mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Add basic Travis CI configuration
This commit is contained in:
parent
19dbe87167
commit
6365a26cd3
5 changed files with 42 additions and 4 deletions
19
.travis.yml
19
.travis.yml
|
@ -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
|
||||
|
|
|
@ -1,3 +1,6 @@
|
|||
[](https://travis-ci.org/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
4
pytest.ini
Normal file
|
@ -0,0 +1,4 @@
|
|||
[pytest]
|
||||
addopts = -s -v
|
||||
norecursedirs = dist doc build .tox .eggs
|
||||
testpaths = tests/
|
2
setup.cfg
Normal file
2
setup.cfg
Normal file
|
@ -0,0 +1,2 @@
|
|||
[flake8]
|
||||
ignore = E501,E128,E731,E722
|
18
tox.ini
Normal file
18
tox.ini
Normal 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
|
Loading…
Add table
Reference in a new issue