diff --git a/.travis.yml b/.travis.yml index 3c28190..65c29ee 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,7 @@ before_deploy: deploy: # Main releases: tags set on master - provider: script - script: poetry publish --build + script: make clean && poetry publish --build on: branch: master # We don't want to publish a release twice (once for each supported diff --git a/common.mk b/common.mk index 77f901a..eb3effa 100644 --- a/common.mk +++ b/common.mk @@ -30,3 +30,7 @@ lint: black flake8 .PHONY: flake8 flake8: configure poetry run flake8 $(SRC) + +.PHONY: clean +clean: + rm -rf .make .pytest_cache __pycache__ dist .hypothesis har_transformer.egg-info