mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
gitlab-ci: long timeout and many retries for pip installs
This commit is contained in:
parent
e5d8479033
commit
0fa1f91a23
@ -1,8 +1,12 @@
|
|||||||
|
|
||||||
|
variables:
|
||||||
|
pip: pip3 --timeout 100 --retries 10
|
||||||
|
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: registry.gitlab.com/fdroid/ci-images-server:latest
|
image: registry.gitlab.com/fdroid/ci-images-server:latest
|
||||||
script:
|
script:
|
||||||
- pip3 install -e .
|
- $pip install -e .
|
||||||
- cd tests
|
- cd tests
|
||||||
- ./complete-ci-tests
|
- ./complete-ci-tests
|
||||||
|
|
||||||
@ -104,8 +108,8 @@ ubuntu_xenial_pip:
|
|||||||
- rm -rf env
|
- rm -rf env
|
||||||
- pyvenv env
|
- pyvenv env
|
||||||
- . env/bin/activate
|
- . env/bin/activate
|
||||||
- pip3 install --upgrade babel pip setuptools
|
- $pip install --upgrade babel pip setuptools
|
||||||
- pip3 install -e .
|
- $pip install -e .
|
||||||
- ./setup.py compile_catalog
|
- ./setup.py compile_catalog
|
||||||
- ./tests/run-tests
|
- ./tests/run-tests
|
||||||
|
|
||||||
@ -135,7 +139,7 @@ lint_format_safety_bandit_checks:
|
|||||||
script:
|
script:
|
||||||
- apk add --no-cache bash dash ca-certificates python3
|
- apk add --no-cache bash dash ca-certificates python3
|
||||||
- python3 -m ensurepip
|
- 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
|
- export EXITVALUE=0
|
||||||
- ./hooks/pre-commit || export EXITVALUE=1
|
- ./hooks/pre-commit || export EXITVALUE=1
|
||||||
- bandit
|
- bandit
|
||||||
@ -184,7 +188,7 @@ fedora_latest:
|
|||||||
which
|
which
|
||||||
- ./setup.py compile_catalog sdist
|
- ./setup.py compile_catalog sdist
|
||||||
- useradd -m -c "test account" --password "fakepassword" testuser
|
- 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
|
- 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
|
- wget --no-verbose -O tools.zip https://dl.google.com/android/repository/tools_r25.2.5-linux.zip
|
||||||
- unzip -q tools.zip
|
- unzip -q tools.zip
|
||||||
@ -222,5 +226,5 @@ gradle:
|
|||||||
test -z "$CHANGED" && exit;
|
test -z "$CHANGED" && exit;
|
||||||
fi
|
fi
|
||||||
- python3 -m ensurepip
|
- python3 -m ensurepip
|
||||||
- pip3 install beautifulsoup4 requests
|
- $pip install beautifulsoup4 requests
|
||||||
- ./tests/gradle-release-checksums.py
|
- ./tests/gradle-release-checksums.py
|
||||||
|
Loading…
Reference in New Issue
Block a user