Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 98c0526

Browse files
committed
do not run tests if nothing has changed
1 parent 4a8626f commit 98c0526

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,19 @@ install: build
3737
sudo rm -rf ${NAME}.egg-info
3838

3939
test: all
40-
if pip show pytest-cov > /dev/null; then $(PYTEST) --cov=CloudFlare ; else $(PYTEST) -vv ; fi
40+
@if pip show pytest-cov > /dev/null; \
41+
then \
42+
if [ `find CloudFlare cli4 examples tests setup.py -type f -name '*.py' -newer .coverage | wc -l` != 0 ]; \
43+
then \
44+
echo $(PYTEST) --cov=CloudFlare ; \
45+
$(PYTEST) --cov=CloudFlare ; \
46+
else \
47+
true ; \
48+
fi ; \
49+
else \
50+
echo $(PYTEST) -vv ; \
51+
$(PYTEST) -vv ; \
52+
fi
4153

4254
cli4test: all
4355
$(PYTHON) -m cli4 /ips > /dev/null

0 commit comments

Comments
 (0)