From e2c60c6d0e900d1e50e05d43bde11cf0d7e3ac0f Mon Sep 17 00:00:00 2001 From: nyyu Date: Sat, 28 Aug 2021 11:28:00 +0200 Subject: [PATCH] build mondrianwifi --- .drone.yml | 69 ++++++++++++++++++++++++++++++++++++++++++++++++ mondrianwifi.env | 5 ++++ mondrianwifi.xml | 22 +++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 .drone.yml create mode 100644 mondrianwifi.env create mode 100644 mondrianwifi.xml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..12e06c8 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,69 @@ +--- +kind: pipeline +type: exec +name: mondrianwifi + +platform: + os: linux + arch: amd64 + +steps: +- name: sync + commands: + - source $DRONE_HOME/${DRONE_STAGE_NAME}.env + - cd $work + - repo init -u git://github.com/LineageOS/android.git -b lineage-$version + - mkdir -p .repo/local_manifests + - cp $DRONE_HOME/$device.xml .repo/local_manifests/roomservice.xml + - repo sync -q -c -j 6 --fail-fast --force-sync --no-tags + +- name: build + shell: /bin/bash + commands: + - source $DRONE_HOME/${DRONE_STAGE_NAME}.env + - cd $work + - . build/envsetup.sh + - lunch lineage_$device-userdebug + - mka bacon -j8 + +- name: copy + commands: + - source $DRONE_HOME/${DRONE_STAGE_NAME}.env + - cd $work + - rm -f $httpdir/lineage-$version-*-UNOFFICIAL-$device.zip{,.md5sum} + - mv -f out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip{,.md5sum} $httpdir/ + - ls -lh $httpdir/lineage-$version-*-UNOFFICIAL-$device.zip{,.md5sum} + +- name: clean + commands: + - source $DRONE_HOME/${DRONE_STAGE_NAME}.env + - cd $work + - rm -f out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip_* out/target/product/$device/lineage_$device-ota-eng.*.zip + +trigger: + event: + - push + - custom + - cron + +--- + +kind: pipeline +type: exec +name: mondrianwifi-publish + +platform: + os: linux + arch: amd64 + +steps: +- name: publish + commands: + - source $DRONE_HOME/mondrianwifi.env + - cd $httpdir + - mv lineage-$version-*-UNOFFICIAL-$device.zip{,.md5sum} $publishdir/ + - ls -lh $publishdir/ + +trigger: + event: + - promote diff --git a/mondrianwifi.env b/mondrianwifi.env new file mode 100644 index 0000000..cc0db4d --- /dev/null +++ b/mondrianwifi.env @@ -0,0 +1,5 @@ +version=18.1 +work=/drone/lineage-$version +device=mondrianwifi +httpdir=/srv/http/drone +publishdir=/mnt/android/lineage/$version/$device diff --git a/mondrianwifi.xml b/mondrianwifi.xml new file mode 100644 index 0000000..c5bc1a6 --- /dev/null +++ b/mondrianwifi.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + +