gitlab-ci: long timeout and many retries for pip installs

This commit is contained in:
Hans-Christoph Steiner 2020-01-14 20:04:14 +01:00
parent e5d8479033
commit 0fa1f91a23
No known key found for this signature in database
GPG Key ID: 3E177817BA1B9BFA
1 changed files with 10 additions and 6 deletions

View File

@ -1,8 +1,12 @@
variables:
pip: pip3 --timeout 100 --retries 10
test:
image: registry.gitlab.com/fdroid/ci-images-server:latest
script:
- pip3 install -e .
- $pip install -e .
- cd tests
- ./complete-ci-tests
@ -104,8 +108,8 @@ ubuntu_xenial_pip:
- rm -rf env
- pyvenv env
- . env/bin/activate
- pip3 install --upgrade babel pip setuptools
- pip3 install -e .
- $pip install --upgrade babel pip setuptools
- $pip install -e .
- ./setup.py compile_catalog
- ./tests/run-tests
@ -135,7 +139,7 @@ lint_format_safety_bandit_checks:
script:
- apk add --no-cache bash dash ca-certificates python3
- python3 -m ensurepip
- pip3 install Babel 'bandit<1.6.0' pycodestyle pyflakes 'pylint<2.0' safety
- $pip install Babel 'bandit<1.6.0' pycodestyle pyflakes 'pylint<2.0' safety
- export EXITVALUE=0
- ./hooks/pre-commit || export EXITVALUE=1
- bandit
@ -184,7 +188,7 @@ fedora_latest:
which
- ./setup.py compile_catalog sdist
- useradd -m -c "test account" --password "fakepassword" testuser
- su testuser --login --command "cd `pwd`; pip3 install --user dist/fdroidserver-*.tar.gz"
- su testuser --login --command "cd `pwd`; $pip install --user dist/fdroidserver-*.tar.gz"
- test -e ~testuser/.local/share/locale/de/LC_MESSAGES/fdroidserver.mo
- wget --no-verbose -O tools.zip https://dl.google.com/android/repository/tools_r25.2.5-linux.zip
- unzip -q tools.zip
@ -222,5 +226,5 @@ gradle:
test -z "$CHANGED" && exit;
fi
- python3 -m ensurepip
- pip3 install beautifulsoup4 requests
- $pip install beautifulsoup4 requests
- ./tests/gradle-release-checksums.py