Skip to content

Commit

Permalink
Add clean
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott-Simmons committed Nov 14, 2024
1 parent befe18d commit dd1d92c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.testing
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ WORKDIR /tsfresh
# Requires adding safe.directory so that tsfresh can build when the
# repo is mounted.
# Note cannot do this at build time as no git directory exists
ENTRYPOINT ["/bin/bash", "-c", "git config --global --add safe.directory /tsfresh && tox -r -p auto"]
ENTRYPOINT ["/bin/bash", "-c", "git config --global --add safe.directory /tsfresh]
CMD ["tox", "-r", "-p", "auto"]
14 changes: 9 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,29 @@ build-testenv:

# Tests `PYTHON_VERSIONS`, provided they are also
# specified in setup.cfg `envlist`
test-all-testenv: build-testenv
test-all-testenv: clean build-testenv
docker run --rm \
--name $(TEST_CONTAINER) \
-v .:$(WORKDIR) \
# To ensure build artifacts dont conflict with local
-v build_artifacts:$(WORKDIR)/build
$(TEST_IMAGE)

# Tests the python binaries installed
# on local machine, provided they are also
# specified in setup.cfg `envlist`
test-all-local:
tox -r
test-all-local: clean
tox -r -p auto

# Tests for python version on local machine in
# current context (e.g. global or local version of
# python set by pyenv, or the python version in
# the active virtualenv).
test-local:
test-local: clean
pip install .[testing]
pytest

clean:
rm -rf .tox
rm -rf .tox build/ dist/ *.egg-info

.PHONY: clean test-all-local test-local test-all-testenv

0 comments on commit dd1d92c

Please sign in to comment.