Skip to content

Commit

Permalink
docs: fixed Makefile example
Browse files Browse the repository at this point in the history
  • Loading branch information
matveypashkovskiy committed Apr 28, 2021
1 parent 183f382 commit 2753568
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ One of the ways to organize it in Makefile would be:
```make
test: BRANCH_NAME = $(shell git branch | sed -n -e 's/^\* \(.*\)/\1/p')
test:
@[ "$(BRANCH_NAME)" = "master" ] && $(MAKE) test-master || $(MAKE) test-pr
ifeq ($(BRANCH_NAME), master)
$(MAKE) test-master
else
$(MAKE) test-pr
endif

test-master:
pytest \
Expand Down

0 comments on commit 2753568

Please sign in to comment.