[enh] add yaml syntax check in travis.yml

This commit is contained in:
Laurent Peuch 2016-12-18 01:05:03 +01:00
parent 198bc51128
commit a94733c1f9
2 changed files with 9 additions and 0 deletions

5
.travis.yml Normal file
View file

@ -0,0 +1,5 @@
language: python
install: "pip install pytest pyyaml"
python:
- "2.7"
script: "py.test tests"

4
tests/test_actionmap.py Normal file
View file

@ -0,0 +1,4 @@
import yaml
def test_yaml_syntax():
yaml.load(open("data/actionsmap/yunohost.yml"))