fix pypy not being tested

This commit is contained in:
Manuel Barkhau 2019-02-15 01:30:00 +01:00
parent 8cd9d6a199
commit 4dd7ecf640

View file

@ -16,6 +16,14 @@ compat_test/%.py: test/%.py
mv $@.tmp $@;
CONDA_ENV_PYS := \
$(shell echo "$(CONDA_ENV_PATHS)" \
| sed 's!\(_py[[:digit:]]\+\)!\1/bin/python!g' \
| sed 's!\(_pypy2[[:digit:]]\)!\1/bin/pypy!g' \
| sed 's!\(_pypy3[[:digit:]]\)!\1/bin/pypy3!g' \
)
## Run pytest integration tests
.PHONY: test_compat
test_compat: $(COMPAT_TEST_FILES)
@ -28,9 +36,9 @@ test_compat: $(COMPAT_TEST_FILES)
mkdir -p build/test_wheel;
$(DEV_ENV_PY) setup.py bdist_wheel --dist-dir build/test_wheel;
IFS=' ' read -r -a env_paths <<< "$(CONDA_ENV_PATHS)"; \
for i in $${!env_paths[@]}; do \
env_py=$${env_paths[i]}/bin/python; \
IFS=' ' read -r -a env_pys <<< "$(CONDA_ENV_PYS)"; \
for i in $${!env_pys[@]}; do \
env_py=$${env_pys[i]}; \
$${env_py} -m pip install --upgrade build/test_wheel/*.whl; \
PYTHONPATH="" ENV=$${ENV-dev} \
$${env_py} -m pytest --verbose compat_test/; \