forked from kernelci/kcidb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
28 lines (28 loc) · 807 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
language: python
dist: xenial
python:
- "3.6"
install:
- pip3 install '.[dev]'
script:
- "flake8 kcidb *.py"
- "pylint kcidb *.py"
- find -name '*.yaml' | xargs yamllint
- kcidb-tests-validate --urls < tests.yaml
- |
test_list=$(
python3 <(
echo "import sys, yaml"
echo "for k in yaml.safe_load(sys.stdin).keys():"
echo " print(k)"
) < tests.yaml
)
test_list_diff=$(diff -u <(echo "$test_list") \
<(echo "$test_list" | sort)) ||
{
echo "Tests out of alphabetic order." >&2
echo "Change the order as below:" >&2
echo "$test_list_diff" >&2
false
}
- pytest