build mondrianwifi
This commit is contained in:
parent
1c89f3f16d
commit
11e87bc04d
98
.drone.yml
98
.drone.yml
@ -3,55 +3,6 @@ kind: pipeline
|
|||||||
type: exec
|
type: exec
|
||||||
name: mondrianwifi
|
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:
|
platform:
|
||||||
os: linux
|
os: linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
@ -97,6 +48,55 @@ trigger:
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: mondrianlte
|
||||||
|
|
||||||
|
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
|
kind: pipeline
|
||||||
type: exec
|
type: exec
|
||||||
name: mondrianwifi-publish
|
name: mondrianwifi-publish
|
||||||
|
Loading…
Reference in New Issue
Block a user