This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
batect.yml
111 lines (97 loc) · 2.66 KB
/
batect.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
containers:
editorconfig-checker:
image: mstruebing/editorconfig-checker:2.7.2
volumes:
- local: .
container: /code
options: ro
working_directory: /code
yamllint:
build_directory: .batect/yamllint
volumes:
- local: .
container: /code
options: ro
working_directory: /code
yapf:
build_directory: .batect/yapf
volumes:
- local: .
container: /code
options: ro
working_directory: /code
test-env:
build_directory: .batect/test-env
volumes:
- local: completions/batect.fish
container: /usr/share/fish/vendor_completions.d/batect.fish
options: ro
- local: tests
container: /tests
options: ro
release-env:
build_directory: .batect/release-env
volumes:
- local: .
container: /code
options: ro
working_directory: /code
tasks:
check-format:
description: Run all formatting check tasks.
group: Formatting check tasks
prerequisites:
- check-format:*
check-format:editorconfig-compliance:
description: Check formatting of all files against the configuration in .editorconfig.
group: Formatting check tasks
run:
container: editorconfig-checker
command: ec -exclude ^\.git
check-format:python:
description: Check formatting of Python code.
group: Formatting check tasks
run:
container: yapf
command: yapf --diff --recursive .
check-format:yaml:
description: Check formatting of all YAML files.
group: Formatting check tasks
run:
container: yamllint
command: yamllint --strict .
lint:
description: Run all linting tasks.
group: Linting tasks
prerequisites:
- lint:*
test:
description: Run the tests.
group: Testing tasks
run:
container: test-env
command: ./tests.py
working_directory: /tests
test-shell:
description: Start a Fish shell in the test environment.
group: Utility tasks
run:
container: test-env
command: fish
working_directory: /tests
validate-release:
description: Validate that the current state of the repository is suitable for releasing.
group: Release tasks
run:
container: release-env
command: ./scripts/validate_version.sh
check-release-env:
description: Test that the release environment still builds (it's only used whenever we release, but finding out that packages are outdated at that point is too late).
group: Release tasks
run:
container: release-env
command: echo OK!
include:
- type: git
repo: https://github.com/batect/hadolint-bundle.git
ref: 0.29.0