Commit 5b5123f5 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Heptapod CI: tox in Docker image needs a compatible virtualenv

The simplest is to install tox via pip for the right Python, and it
will bring the correct environment.
parent f07e504d4edb
Pipeline #11097 failed with stage
in 31 minutes and 39 seconds
......@@ -36,7 +36,10 @@ docker-inside:
- apt-get -y install sudo
- visudo --file=ci/omnibus.sudoers -c
- install -m 0440 -o root -g root ci/omnibus.sudoers /etc/sudoers.d/omnibus
- apt-get -y install tox chromium-driver
# this will in particular bring a version of virtualenv that's suited
# for Python 3.8 instead of one that can't use Python 3.8 in --python option
- /opt/gitlab/embedded/bin/pip3 install tox
- apt-get -y install chromium-driver
- ci/run-tests-inside || ci/fail-copy-logs
artifacts:
when: on_failure
......
......@@ -17,7 +17,7 @@ COMMON_FLAGS="-v \
chown -R git:git .
GIT_HOME=`ls -d ~git` # for explicit guaranteed forwarding
chown git:git $GIT_HOME
TOX="sudo -u git HOME=$GIT_HOME tox -e omnibus"
TOX="sudo -u git HOME=$GIT_HOME /opt/gitlab/embedded/bin/tox -e omnibus"
INITIAL_WAIT=180
for MARKER in fs_access services; do
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment