|
|
@ -8,8 +8,17 @@ test: bats |
|
|
|
PATH="./bats/bin:$$PATH" test/run |
|
|
|
cd plugins/python-build && $(PWD)/bats/bin/bats $${CI:+--tap} test |
|
|
|
|
|
|
|
test-build: bats |
|
|
|
cd plugins/python-build && $(PWD)/bats/bin/bats $${CI:+--tap} test/build |
|
|
|
PYTHON_BUILD_ROOT := $(CURDIR)/plugins/python-build |
|
|
|
PYTHON_BUILD_OPTS ?= --verbose |
|
|
|
PYTHON_BUILD_VERSION ?= 3.8-dev |
|
|
|
PYTHON_BUILD_TEST_PREFIX ?= $(PYTHON_BUILD_ROOT)/test/build/tmp/dist |
|
|
|
|
|
|
|
test-build: |
|
|
|
$(PYTHON_BUILD_ROOT)/bin/python-build $(PYTHON_BUILD_OPTS) $(PYTHON_BUILD_VERSION) $(PYTHON_BUILD_TEST_PREFIX) |
|
|
|
[ -e $(PYTHON_BUILD_TEST_PREFIX)/bin/python ] |
|
|
|
$(PYTHON_BUILD_TEST_PREFIX)/bin/python -V |
|
|
|
[ -e $(PYTHON_BUILD_TEST_PREFIX)/bin/pip ] |
|
|
|
$(PYTHON_BUILD_TEST_PREFIX)/bin/pip -V |
|
|
|
|
|
|
|
bats: |
|
|
|
git clone --depth 1 https://github.com/bats-core/bats-core.git bats |