- ./complete-ci-tests
# Test that the parsing of the .txt format didn't change from last
-# released version. Ensure that the official tags are included when
-# running these tests on forks as well.
+# released version. This uses the commit ID of the release tags,
+# rather than the release tag itself so that contributor forks do not
+# need to include the tags in them for this test to work.
+#
+# The COMMIT_ID should be bumped after each release, so that the list
+# of sed hacks needed does not continuously grow.
metadata_v0:
image: registry.gitlab.com/fdroid/ci-images-server:latest
+ variables:
+ RELEASE_COMMIT_ID: 6d69dcddd95fe08ffe431e305932cfdeafd6fc9d # 1.0.0
script:
- - git fetch https://gitlab.com/fdroid/fdroidserver 0.8
+ - git fetch https://gitlab.com/fdroid/fdroidserver $RELEASE_COMMIT_ID
- cd tests
- export GITCOMMIT=`git describe`
- - git checkout 0.8 # bump after release
+ - git checkout $RELEASE_COMMIT_ID
- cd ..
- git clone --depth 1 https://gitlab.com/fdroid/fdroiddata
- cd fdroiddata
- git checkout $GITCOMMIT
- cd fdroiddata
- ../tests/dump_internal_metadata_format.py
- - sed -i -e '/LiberapayID/d'
+ - sed -i
+ -e '/Translation:/d'
+ -e '/kivy:\sfalse/d'
+ -e '/timeout:\s/d'
metadata/dump_*/*.yaml
- diff -uw metadata/dump_*
- apt update -y
- apt dist-upgrade -y
- apt-get install -y --no-install-recommends
- aapt adb android-platform-tools-base android-sdk-common fdroidserver
- git gnupg python3-setuptools zipalign
+ fdroidserver git gnupg python3-setuptools
+ - sed -i -e 's,testing,sid,g' -e 's,testing,sid,g' /etc/apt/sources.list
+ - apt-get update -y
+ - apt-get install -y --no-install-recommends aapt androguard android-platform-tools-base zipalign
+ - python3 -c 'import fdroidserver'
+ - python3 -c 'import androguard'
- export ANDROID_HOME=/usr/lib/android-sdk
- export LANG=C.UTF-8
- cd tests
- - rm -f install.TestCase # fails frequently and is unimportant
- ./run-tests
ubuntu_lts:
- wget --no-verbose -O tools.zip https://dl.google.com/android/repository/tools_r25.2.4-linux.zip
- unzip -q tools.zip
- rm tools.zip
+ - export AAPT_VERSION=`sed -n "s,^MINIMUM_AAPT_VERSION\s*=\s*['\"]\(.*\)[['\"],\1,p" fdroidserver/common.py`
- export ANDROID_HOME=`pwd`/android-sdk
- mkdir $ANDROID_HOME
- mv tools $ANDROID_HOME/
- mkdir ~/.android
- touch ~/.android/repositories.cfg
- echo y | $ANDROID_HOME/tools/bin/sdkmanager "platform-tools"
- - echo y | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;25.0.2"
+ - echo y | $ANDROID_HOME/tools/bin/sdkmanager "build-tools;$AAPT_VERSION"
- chown -R testuser .
- cd tests
- su testuser --login --command