Merge branch 'build-on-buildserver' into 'master'

`fdroid build` on buildserver

See merge request fdroid/fdroiddata!3905
This commit is contained in:
Hans-Christoph Steiner 2018-11-14 12:40:47 +00:00
commit 6bd16551b2
2 changed files with 51 additions and 8 deletions

View file

@ -1,14 +1,13 @@
image: registry.gitlab.com/fdroid/ci-images-server:latest
before_script:
- rm -rf fdroidserver
- mkdir fdroidserver
- curl --silent https://gitlab.com/fdroid/fdroidserver/repository/master/archive.tar.gz
| tar -xz --directory=fdroidserver --strip-components=1
- export PATH="$PWD/fdroidserver:$PATH"
- touch config.py
lint:
before_script:
- rm -rf fdroidserver
- mkdir fdroidserver
- curl --silent https://gitlab.com/fdroid/fdroidserver/repository/master/archive.tar.gz
| tar -xz --directory=fdroidserver --strip-components=1
- export PATH="$PWD/fdroidserver:$PATH"
- touch config.py
script:
# if this is a merge request fork, then only check relevant apps
- if [ "$CI_PROJECT_NAMESPACE" != "fdroid" ]; then
@ -55,3 +54,40 @@ pages:
- rm -rf public
- gem install git_stats
- git_stats generate --silent --out-path=public
fdroid-buildserver:
tags:
- fdroid
- buildserver
artifacts:
name: "${CI_PROJECT_PATH}_${CI_JOB_STAGE}_${CI_COMMIT_REF_NAME}_${CI_COMMIT_SHA}"
paths:
- logs
- unsigned
expire_in: 1 week
when: always
script:
- virsh -c qemu:///system destroy builder_default || true
- virsh -c qemu:///system undefine builder_default
--nvram --managed-save --remove-all-storage --snapshots-metadata || true
- git -C /home/fdroid/fdroidserver reset --hard
- git -C /home/fdroid/fdroidserver checkout -B master origin/master
- export PATH="$HOME/fdroidserver:$PATH"
- git fetch https://gitlab.com/fdroid/fdroiddata.git
- test -d build || mkdir build
- for f in `git diff --name-only --diff-filter=d FETCH_HEAD...HEAD`; do
appid=`echo $f | sed -n -e 's,^metadata/\([^/][^/]*\)\.txt,\1,p'
-e 's,^metadata/\([^/][^/]*\)\.yml,\1,p'`;
! test -z "$appid" || continue;
echo building $appid;
set -x;
if [ "$CI_PROJECT_NAMESPACE" = "fdroid" ]; then
fdroid build --verbose -Werror --server --stop --latest $appid;
else
fdroid build --verbose -Wwarn --server --stop --test --force --latest $appid;
fi;
set +x;
done
after_script:
- cd builder
- vagrant destroy --force

View file

@ -227,6 +227,13 @@ Build:15.2.0-RC-3,1510019
gradle=zomrelease
prebuild=sed -i '/com.google.android.gms/d' ../chatsecure-push/example/build.gradle
Build:15.7.0-beta-2,1570020
disable=requires play-services-basement-15.0.1.aar
commit=0cbed21970a52999d63e7093f5464d3e80a8294b
subdir=app
submodules=yes
gradle=zomrelease
Auto Update Mode:None
Update Check Mode:Tags
Current Version:15.7.0-beta-2