mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 06:50:29 +03:00
Merge branch 'run-tests-in-buildserver' into 'master'
gitlab-ci: run test suite in the buildserver environment See merge request fdroid/fdroidserver!1129
This commit is contained in:
commit
39329b289b
1 changed files with 14 additions and 6 deletions
|
|
@ -5,12 +5,20 @@ variables:
|
||||||
GIT_DEPTH: 1
|
GIT_DEPTH: 1
|
||||||
|
|
||||||
|
|
||||||
# Run the whole test suite in an environment that is like the buildserver guest VM.
|
# Run the whole test suite in an environment that is like the
|
||||||
ci-images-base run-tests:
|
# buildserver guest VM. This installs python3-babel because that is
|
||||||
image: registry.gitlab.com/fdroid/ci-images-base
|
# only used by the test suite, and not needed in the buildserver.
|
||||||
|
#
|
||||||
|
# Some extra packages are required for this test run that are not
|
||||||
|
# provided by the buildserver since they are not needed there:
|
||||||
|
# * python3-babel for compiling localization files
|
||||||
|
# * gnupg-agent for the full signing setup
|
||||||
|
# * python3-clint for fancy progress bars for users
|
||||||
|
buildserver run-tests:
|
||||||
|
image: registry.gitlab.com/fdroid/fdroidserver:buildserver
|
||||||
script:
|
script:
|
||||||
- $pip install --upgrade pip setuptools wheel # make this go away: "error: invalid command 'bdist_wheel'"
|
- apt-get update
|
||||||
- $pip install -e .
|
- apt-get install gnupg-agent python3-babel python3-clint
|
||||||
- ./tests/run-tests
|
- ./tests/run-tests
|
||||||
# make sure that translations do not cause stacktraces
|
# make sure that translations do not cause stacktraces
|
||||||
- cd $CI_PROJECT_DIR/locale
|
- cd $CI_PROJECT_DIR/locale
|
||||||
|
|
@ -29,7 +37,7 @@ ci-images-base run-tests:
|
||||||
# The COMMIT_ID should be bumped after each release, so that the list
|
# The COMMIT_ID should be bumped after each release, so that the list
|
||||||
# of sed hacks needed does not continuously grow.
|
# of sed hacks needed does not continuously grow.
|
||||||
metadata_v0:
|
metadata_v0:
|
||||||
image: registry.gitlab.com/fdroid/ci-images-base
|
image: registry.gitlab.com/fdroid/fdroidserver:buildserver
|
||||||
variables:
|
variables:
|
||||||
GIT_DEPTH: 1000
|
GIT_DEPTH: 1000
|
||||||
RELEASE_COMMIT_ID: 37c95f59a17d86723fdb71e984121726db777f32 # 2.0a5~
|
RELEASE_COMMIT_ID: 37c95f59a17d86723fdb71e984121726db777f32 # 2.0a5~
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue