Skip to content

Commit 43826ea

Browse files
authored
fix: return code of makefile (#36)
1 parent 1fb0d71 commit 43826ea

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Makefile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ install-dev:
77
@for f in $(shell ls ${SERVICES_DIR}); do pip install -e ${SERVICES_DIR}/$${f}[dev]; done
88

99
test:
10-
@for f in $(shell ls ${SERVICES_DIR}); do cd ${SERVICES_DIR}/$${f}; pytest; cd ../..; done
10+
@for f in $(shell ls ${SERVICES_DIR}); do set -e; cd ${SERVICES_DIR}/$${f}; sh -c 'pytest || ([ $$? = 5 ] && exit 0 || exit $$?)'; cd ../..; done
1111

1212
lint:
1313
# lint examples
1414
flake8 --toml-config $(word 1, $(wildcard $(SERVICES_DIR)/*))/pyproject.toml --black-config $(word 1, $(wildcard $(SERVICES_DIR)/*))/pyproject.toml examples;
1515
# lint services
16-
@for f in $(shell ls ${SERVICES_DIR}); do cd ${SERVICES_DIR}/$${f}; flake8 .; cd ../..; done
17-
16+
@for f in $(shell ls ${SERVICES_DIR}); do set -e; cd ${SERVICES_DIR}/$${f};flake8 .; cd ../..; done

0 commit comments

Comments
 (0)