mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-07 14:45:18 +00:00
tests: Fail on CI when any required tool is missing
This commit is contained in:
parent
00efdecb4b
commit
d398a3c2df
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -9,4 +9,4 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: YosysHQ/setup-oss-cad-suite@v1
|
- uses: YosysHQ/setup-oss-cad-suite@v1
|
||||||
- name: Run checks
|
- name: Run checks
|
||||||
run: tabbypip install xmlschema && make ci
|
run: tabbypip install xmlschema && make ci NOSKIP=1
|
||||||
|
|
|
@ -31,6 +31,12 @@ make/rules/collect.mk: make/collect_tests.py
|
||||||
make/rules/test/%.mk:
|
make/rules/test/%.mk:
|
||||||
python3 make/test_rules.py $<
|
python3 make/test_rules.py $<
|
||||||
|
|
||||||
|
ifdef NOSKIP
|
||||||
|
SKIP_COMMAND := echo "NOSKIP was set, treating this as an error"; echo; false
|
||||||
|
else
|
||||||
|
SKIP_COMMAND := echo
|
||||||
|
endif
|
||||||
|
|
||||||
ifneq (help,$(MAKECMDGOALS))
|
ifneq (help,$(MAKECMDGOALS))
|
||||||
|
|
||||||
# This should run every time but only trigger anything depending on it whenever
|
# This should run every time but only trigger anything depending on it whenever
|
||||||
|
|
|
@ -66,7 +66,7 @@ with rules_file.open("w") as rules:
|
||||||
|
|
||||||
if missing_tools:
|
if missing_tools:
|
||||||
print(
|
print(
|
||||||
f"\t@echo; echo 'SKIPPING {target}: {', '.join(missing_tools)} not found'; echo",
|
f"\t@echo; echo 'SKIPPING {target}: {', '.join(missing_tools)} not found'; $(SKIP_COMMAND)",
|
||||||
file=rules,
|
file=rules,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue