blob: c06bb465ac7d0fff391cbca71d9e17170a37115d [file] [log] [blame]
mrichomme08f66652020-03-06 17:49:55 +01001[tox]
2minversion = 3.2.0
3envlist = json,yaml
4skipsdist = true
5requires = pip >= 8
6
7[testenv]
8basepython = python3
9whitelist_externals =
10 git
11 bash
12deps =
13 coala-bears
14
15[testenv:json]
16commands_pre =
17 /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.json' > /tmp/.coalist_json"
18commands =
19# '\ ' at the end of command is needed for a case where above command returns empty list (it adds empty file
20# parameter to '--files' opt
21 /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn json --files $(</tmp/.coalist_json) \ "
22
23[testenv:yaml]
24commands_pre =
25 /bin/sh -c "git --no-pager diff HEAD HEAD^ --name-only '*.yaml' '*.yml' > /tmp/.coalist_yaml"
26commands =
27# '\ ' at the end of command is needed for a case where above command returns empty list (it adds empty file
28# parameter to '--files' opt
29 /bin/bash -c "coala --non-interactive --disable-caching --no-autoapply-warn yaml --files $(</tmp/.coalist_yaml) \ "
30
31[testenv:robot]
32deps = robotframework-lint
Bartek Grzybowskic986f632020-12-15 10:46:51 +010033dirs = robot/testsuites/usecases
mrichomme08f66652020-03-06 17:49:55 +010034
35commands =
Bartek Grzybowskic986f632020-12-15 10:46:51 +010036 python -m rflint --ignore LineTooLong --ignore RequireKeywordDocumentation --ignore RequireTestDocumentation -r {[testenv:robot]dirs}