fix testing on pypy

This commit is contained in:
Manuel Barkhau 2019-02-15 19:57:18 +01:00
parent 4dd7ecf640
commit 7172afdd81
5 changed files with 27 additions and 24 deletions

View file

@ -1,17 +1,22 @@
#!/bin/bash
read -r -a env_paths <<< "${CONDA_ENV_PATHS//, /$IFS}";
read -r -a env_py_paths <<< "${CONDA_ENV_BIN_PYTHON_PATHS//, /$IFS}";
read -r -a env_names <<< "${CONDA_ENV_NAMES//, /$IFS}";
for i in ${!env_paths[@]}; do
env_path=${env_paths[i]};
env_path_python=${env_path}/bin/python;
for i in ${!env_py_paths[@]}; do
env_path_python=${env_py_paths[i]};
env_name=${env_names[i]};
${env_path_python} -m pip install --upgrade --quiet pip;
echo "updating ${env_name} pypi deps ...";
# pytest is required in every environment to run the test suite
# against the installed modules.
${env_path_python} -m pip install \
--disable-pip-version-check --upgrade --quiet \
pytest;
${env_path_python} -m pip install \
--disable-pip-version-check --upgrade --quiet \
--requirement=requirements/pypi.txt;