mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-10-03 17:50:11 +02:00
gitlab-ci: fix tests on Fedora
* install `which` and `find` commands used in ./tests/run-tests * sdkmanager on Fedora needs JAVA_HOME to be set
This commit is contained in:
parent
4655e2e24e
commit
e10c12ffc4
@ -152,8 +152,17 @@ fedora_latest:
|
|||||||
- master@fdroid/fdroidserver
|
- master@fdroid/fdroidserver
|
||||||
script:
|
script:
|
||||||
- dnf -y update
|
- dnf -y update
|
||||||
- dnf -y install git gnupg java-1.8.0-openjdk-devel python3 python3-babel
|
- dnf -y install findutils
|
||||||
python3-pip rsync unzip wget
|
git
|
||||||
|
gnupg
|
||||||
|
java-1.8.0-openjdk-devel
|
||||||
|
python3
|
||||||
|
python3-babel
|
||||||
|
python3-pip
|
||||||
|
rsync
|
||||||
|
unzip
|
||||||
|
wget
|
||||||
|
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`; pip3 install --user dist/fdroidserver-*.tar.gz"
|
||||||
@ -162,6 +171,7 @@ fedora_latest:
|
|||||||
- unzip -q tools.zip
|
- unzip -q tools.zip
|
||||||
- rm tools.zip
|
- rm tools.zip
|
||||||
- export AAPT_VERSION=`sed -n "s,^MINIMUM_AAPT_VERSION\s*=\s*['\"]\(.*\)[['\"],\1,p" fdroidserver/common.py`
|
- export AAPT_VERSION=`sed -n "s,^MINIMUM_AAPT_VERSION\s*=\s*['\"]\(.*\)[['\"],\1,p" fdroidserver/common.py`
|
||||||
|
- export JAVA_HOME=/etc/alternatives/jre
|
||||||
- export ANDROID_HOME=`pwd`/android-sdk
|
- export ANDROID_HOME=`pwd`/android-sdk
|
||||||
- mkdir $ANDROID_HOME
|
- mkdir $ANDROID_HOME
|
||||||
- mv tools $ANDROID_HOME/
|
- mv tools $ANDROID_HOME/
|
||||||
|
Loading…
Reference in New Issue
Block a user