Skip to content

Commit 6f3264b

Browse files
committed
Reformat long commands in the Makefile
1 parent 3cc2e69 commit 6f3264b

1 file changed

Lines changed: 17 additions & 3 deletions

File tree

.circle/Makefile

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,21 +98,35 @@ compile:
9898
@echo
9999
@echo "==================== packs-resource-register ===================="
100100
@echo
101-
. $(VIRTUALENV_DIR)/bin/activate; if [ ! "${CHANGED_FILES}" ]; then echo "No files have changed, skipping run..."; else st2-check-register-pack-resources /tmp/packs/$(PACK_NAME) || exit 1; fi;
101+
. $(VIRTUALENV_DIR)/bin/activate; \
102+
if [ ! "${CHANGED_FILES}" ]; then \
103+
echo "No files have changed, skipping run..."; \
104+
else \
105+
st2-check-register-pack-resources /tmp/packs/$(PACK_NAME) || exit 1; \
106+
fi;
102107

103108
.PHONY: .packs-tests
104109
.packs-tests:
105110
@echo
106111
@echo "==================== packs-tests ===================="
107112
@echo
108-
. $(VIRTUALENV_DIR)/bin/activate; if [ ! "${CHANGED_FILES}" ]; then echo "No files have changed, skipping run..."; else ($(ST2_REPO_PATH)/st2common/bin/st2-run-pack-tests -c -t -x -j -p $(ROOT_DIR) || exit 1); fi;
113+
. $(VIRTUALENV_DIR)/bin/activate; \
114+
if [ ! "${CHANGED_FILES}" ]; then \
115+
echo "No files have changed, skipping run..."; \
116+
else \
117+
$(ST2_REPO_PATH)/st2common/bin/st2-run-pack-tests -c -t -x -j -p $(ROOT_DIR) || exit 1; \
118+
fi;
109119

110120
.PHONY: .packs-missing-tests
111121
.packs-missing-tests:
112122
@echo
113123
@echo "==================== pack-missing-tests ===================="
114124
@echo
115-
if [ ! "${CHANGED_FILES}" ]; then echo "No files have changed, skipping run..."; else (st2-check-print-pack-tests-coverage $(ROOT_DIR) || exit 1); fi;
125+
if [ ! "${CHANGED_FILES}" ]; then \
126+
echo "No files have changed, skipping run..."; \
127+
else \
128+
st2-check-print-pack-tests-coverage $(ROOT_DIR) || exit 1; \
129+
fi;
116130

117131
.PHONY: .clone_st2_repo
118132
.clone_st2_repo: /tmp/st2

0 commit comments

Comments
 (0)