diff --git a/.drone.yml b/.drone.yml index 12e06c8..b574e81 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,55 @@ 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: mondrianlte + platform: os: linux arch: amd64 diff --git a/mondrianlte.env b/mondrianlte.env new file mode 100644 index 0000000..07afe48 --- /dev/null +++ b/mondrianlte.env @@ -0,0 +1,5 @@ +version=18.1 +work=/drone/lineage-$version +device=mondrianlte +httpdir=/srv/http/drone +publishdir=/mnt/android/lineage/$version/$device diff --git a/mondrianlte.xml b/mondrianlte.xml new file mode 100644 index 0000000..69e14db --- /dev/null +++ b/mondrianlte.xml @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + + + + + + +