1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-19 21:30:10 +01:00

Merge branch 'post-bullseye-ci-updates' into 'master'

gitlab-ci: port ubuntu_bionic_pip to Ubuntu/jammy

See merge request fdroid/fdroidserver!1221
This commit is contained in:
Hans-Christoph Steiner 2022-10-20 15:36:18 +00:00
commit cdee2caa03
2 changed files with 12 additions and 31 deletions

View File

@ -70,8 +70,8 @@ metadata_v0:
- echo Etc/UTC > /etc/timezone - echo Etc/UTC > /etc/timezone
- echo 'APT::Install-Recommends "0";' - echo 'APT::Install-Recommends "0";'
'APT::Install-Suggests "0";' 'APT::Install-Suggests "0";'
'APT::Acquire::Retries "20";'
'APT::Get::Assume-Yes "true";' 'APT::Get::Assume-Yes "true";'
'Acquire::Retries "20";'
'Dpkg::Use-Pty "0";' 'Dpkg::Use-Pty "0";'
'quiet "1";' 'quiet "1";'
>> /etc/apt/apt.conf.d/99gitlab >> /etc/apt/apt.conf.d/99gitlab
@ -107,27 +107,6 @@ debian_testing:
- ./run-tests - ./run-tests
# This tests with buster-backports to match what is used on the f-droid.org publish server.
buster_backports:
image: debian:buster-backports
<<: *apt-template
script:
- apt-get install
aapt
androguard
apksigner
dexdump
fdroidserver
git
gnupg
python3-defusedxml
python3-setuptools
zipalign
- apt-get install -t buster-backports apksigner
- cd tests
- ./run-tests
# Test using latest LTS set up with the PPA, including Recommends. # Test using latest LTS set up with the PPA, including Recommends.
ubuntu_lts_ppa: ubuntu_lts_ppa:
image: ubuntu:latest image: ubuntu:latest
@ -147,16 +126,16 @@ ubuntu_lts_ppa:
- ./run-tests - ./run-tests
# Test using Ubuntu/bionic LTS (supported til April, 2023) with all depends # Test using Ubuntu/jammy LTS (supported til April, 2027) with depends
# from pypi. The venv is used to isolate the dist tarball generation # from pypi and sdkmanager. The venv is used to isolate the dist
# environment from the clean install environment. # tarball generation environment from the clean install environment.
ubuntu_bionic_pip: ubuntu_jammy_pip:
image: ubuntu:bionic image: ubuntu:jammy
<<: *apt-template <<: *apt-template
script: script:
- apt-get install git default-jdk-headless python3-pip python3-venv rsync zipalign libarchive13 dexdump - apt-get install git default-jdk-headless python3-pip python3-venv rsync
- rm -rf env - rm -rf env
- pyvenv env - python3 -m venv env
- . env/bin/activate - . env/bin/activate
- $pip install --upgrade babel pip setuptools - $pip install --upgrade babel pip setuptools
# setup venv to act as release build machine # setup venv to act as release build machine
@ -166,8 +145,6 @@ ubuntu_bionic_pip:
- deactivate - deactivate
- tar tzf dist/fdroidserver-*.tar.gz - tar tzf dist/fdroidserver-*.tar.gz
# back to bare machine to act as user's install machine # back to bare machine to act as user's install machine
- $pip install --upgrade pip setuptools wheel # make this go away: "error: invalid command 'bdist_wheel'"
- export ANDROID_HOME=/opt/android-sdk - export ANDROID_HOME=/opt/android-sdk
- $pip install sdkmanager - $pip install sdkmanager
- sdkmanager 'build-tools;30.0.0' - sdkmanager 'build-tools;30.0.0'

View File

@ -1303,6 +1303,9 @@ fi
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#
echo_header "Test recovering from from broken git submodules" echo_header "Test recovering from from broken git submodules"
# On some platforms, checkupdates submodule tests need explicit perms to use file:///
export GIT_ALLOW_PROTOCOL=file
ROOT=$(create_test_dir) ROOT=$(create_test_dir)
cd "$ROOT" cd "$ROOT"
mkdir foo bar mkdir foo bar
@ -1425,6 +1428,7 @@ EOF
$fdroid checkupdates --allow-dirty --auto -v $fdroid checkupdates --allow-dirty --auto -v
grep "CurrentVersionCode: 1" metadata/fake.yml grep "CurrentVersionCode: 1" metadata/fake.yml
unset GIT_ALLOW_PROTOCOL
#------------------------------------------------------------------------------# #------------------------------------------------------------------------------#