Skip to content

Commit

Permalink
Put venv back into coverage block
Browse files Browse the repository at this point in the history
ci_coverage
  • Loading branch information
jillr committed May 4, 2020
1 parent 3a3a843 commit f40f178
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/utils/shippable/shippable.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,6 @@ else
export UNSTABLE=""
fi

virtualenv --python /usr/bin/python3.7 ~/ansible-venv
set +ux
. ~/ansible-venv/bin/activate
set -ux

pip install setuptools==44.1.0
pip install https://github.com/ansible/ansible/archive/devel.tar.gz --disable-pip-version-check

Expand Down Expand Up @@ -108,6 +103,13 @@ function cleanup
stub=""
fi

# use python 3.7 for coverage to avoid running out of memory during coverage xml processing
# only use it for coverage to avoid the additional overhead of setting up a virtual environment for a potential no-op job
virtualenv --python /usr/bin/python3.7 ~/ansible-venv
set +ux
. ~/ansible-venv/bin/activate
set -ux

# shellcheck disable=SC2086
ansible-test coverage xml --color -v --requirements --group-by command --group-by version ${stub:+"$stub"}
cp -a tests/output/reports/coverage=*.xml shippable/codecoverage/
Expand Down

0 comments on commit f40f178

Please sign in to comment.