mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04:00
vagrant: fix run_tests for py310
This commit is contained in:
parent
9db019f75c
commit
6c0a09d12c
1 changed files with 6 additions and 5 deletions
11
Vagrantfile
vendored
11
Vagrantfile
vendored
|
|
@ -299,17 +299,18 @@ def run_tests(boxname)
|
|||
cd /vagrant/borg/borg
|
||||
. ../borg-env/bin/activate
|
||||
if which pyenv 2> /dev/null; then
|
||||
# for testing, use the earliest point releases of the supported python versions:
|
||||
pyenv global 3.5.3 3.6.2 3.7.11 3.8.0 3.9.0 3.10-dev
|
||||
pyenv local 3.5.3 3.6.2 3.7.11 3.8.0 3.9.0 3.10-dev
|
||||
# for testing, use the earliest point releases of the supported python versions.
|
||||
# on some dists, 3.10-dev does not compile, so if pyenv fails due to this, try without 3.10.
|
||||
pyenv global 3.5.3 3.6.2 3.7.11 3.8.0 3.9.0 3.10-dev || pyenv global 3.5.3 3.6.2 3.7.11 3.8.0 3.9.0
|
||||
pyenv local 3.5.3 3.6.2 3.7.11 3.8.0 3.9.0 3.10-dev || pyenv local 3.5.3 3.6.2 3.7.11 3.8.0 3.9.0
|
||||
fi
|
||||
# otherwise: just use the system python
|
||||
if which fakeroot 2> /dev/null; then
|
||||
echo "Running tox WITH fakeroot -u"
|
||||
fakeroot -u tox --skip-missing-interpreters -e py35,py36,py37,py38,py39
|
||||
fakeroot -u tox --skip-missing-interpreters -e py35,py36,py37,py38,py39,py310
|
||||
else
|
||||
echo "Running tox WITHOUT fakeroot -u"
|
||||
tox --skip-missing-interpreters -e py35,py36,py37,py38,py39
|
||||
tox --skip-missing-interpreters -e py35,py36,py37,py38,py39,py310
|
||||
fi
|
||||
EOF
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue