Compare commits

...

6 Commits

Author SHA1 Message Date
26c747a737 fix changelog if one commit 2022-12-23 11:02:44 +01:00
3735fab2cf remove empty changelog
All checks were successful
continuous-integration/drone Build is passing
2022-10-04 07:26:06 +02:00
61fbe7242c fix changelog
All checks were successful
continuous-integration/drone Build is passing
2022-08-23 09:39:14 +02:00
edd5667917 exclude lineage infra from changelog 2022-08-22 21:16:09 +02:00
bee27b3e97 add changelog 2022-08-22 19:01:46 +02:00
2b434ca830 lineage 18.1 2022-08-19 12:08:08 +02:00
5 changed files with 124 additions and 88 deletions

View File

@ -1,69 +1,105 @@
---
kind: pipeline kind: pipeline
type: exec type: docker
name: mondrianwifi name: mondrianwifi
platform: environment:
os: linux device: mondrianwifi
arch: amd64 version: 18.1
steps: steps:
- name: sync - name: sync
commands: pull: always
- source $DRONE_HOME/${DRONE_STAGE_NAME}.env image: docker.nyyu.dev/lineage/android:latest
- cd $work commands:
- repo init -u https://github.com/LineageOS/android.git -b lineage-$version - cd /build
- mkdir -p .repo/local_manifests - rm -rf .repo/repo
- cp $DRONE_HOME/$device.xml .repo/local_manifests/roomservice.xml - repo init -u https://github.com/LineageOS/android.git -b lineage-$version
- repo sync -q -c -j 6 --fail-fast --force-sync --no-tags - mkdir -p .repo/local_manifests
- cp $DRONE_WORKSPACE_BASE/$device.xml .repo/local_manifests/roomservice.xml
- name: build - bash $DRONE_WORKSPACE_BASE/sync.sh
shell: /bin/bash volumes:
commands: - name: build
- source $DRONE_HOME/${DRONE_STAGE_NAME}.env path: /build
- cd $work - name: build
- . build/envsetup.sh pull: always
- lunch lineage_$device-userdebug image: docker.nyyu.dev/lineage/android:latest
- mka bacon -j6 commands:
- cd /build
- name: copy - bash -c ". build/envsetup.sh && lunch lineage_$device-userdebug && mka bacon -j6"
commands: volumes:
- source $DRONE_HOME/${DRONE_STAGE_NAME}.env - name: build
- cd $work path: /build
- rm -f $httpdir/lineage-$version-*-UNOFFICIAL-$device.zip{,.sha256sum} - name: copy
- mv -f out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip{,.sha256sum} $httpdir/ pull: always
- ls -lh $httpdir/lineage-$version-*-UNOFFICIAL-$device.zip{,.sha256sum} image: docker.nyyu.dev/lineage/android:latest
commands:
- name: clean - rm -f /http/lineage-$version-*-UNOFFICIAL-$device.zip*
commands: - mv -f /build/out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip* /http/
- source $DRONE_HOME/${DRONE_STAGE_NAME}.env - cat /build/changelog-$device-$version.md >> /http/changelog-$device-$version.md
- cd $work - ls -lh /http/lineage-$version-*-UNOFFICIAL-$device.zip*
- rm -f out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip_* out/target/product/$device/lineage_$device-ota-eng.*.zip volumes:
- name: build
path: /build
- name: http
path: /http
- name: clean
pull: always
image: docker.nyyu.dev/lineage/android:latest
commands:
- rm -f /build/out/target/product/$device/lineage-$version-*-UNOFFICIAL-$device.zip_* /build/out/target/product/$device/lineage_$device-ota-eng.*.zip
- rm -f /build/changelog-$device-$version.md
volumes:
- name: build
path: /build
trigger: trigger:
event: event:
- push - custom
- custom - cron
- cron
volumes:
- name: http
host:
path: /srv/http/drone
- name: build
host:
path: /drone/lineage-18.1
image_pull_secrets:
- dockerconfig
--- ---
kind: pipeline kind: pipeline
type: exec type: docker
name: mondrianwifi-publish name: mondrianwifi-publish
platform: environment:
os: linux device: mondrianwifi
arch: amd64 version: 18.1
steps: steps:
- name: publish - name: publish
commands: pull: always
- source $DRONE_HOME/mondrianwifi.env image: docker.nyyu.dev/lineage/android:latest
- cd $httpdir commands:
- mv lineage-$version-*-UNOFFICIAL-$device.zip{,.sha256sum} $publishdir/ - mv /http/lineage-$version-*-UNOFFICIAL-$device.zip* /publish/$version/$device/
- ls -lh $publishdir/ - cat /http/changelog-$device-$version.md >> /publish/$version/$device/changelog.md
- rm -f /http/changelog-$device-$version.md
- ls -lh /publish/$version/$device/
volumes:
- name: http
path: /http
- name: publish
path: /publish
trigger: trigger:
event: event:
- promote - promote
volumes:
- name: http
host:
path: /srv/http/drone
- name: publish
host:
path: /mnt/android/lineage
image_pull_secrets:
- dockerconfig

View File

@ -1,5 +0,0 @@
version=18.1
work=/drone/lineage-$version
device=mondrianlte
httpdir=/srv/http/drone
publishdir=/mnt/android/lineage/$version/$device

View File

@ -1,24 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<remote name="nyyu" fetch="https://git.nyyu.dev" />
<project name="lineage/android_device_samsung_mondrianlte" path="device/samsung/mondrianlte" remote="nyyu" />
<project name="lineage/android_device_samsung_mondrianwifi" path="device/samsung/mondrianwifi" remote="nyyu" />
<project name="lineage/android_kernel_samsung_msm8974" path="kernel/samsung/msm8974_tab" remote="nyyu" revision="lineage-18.1_pro" />
<project name="lineage/android_vendor_samsung_mondrianlte" path="vendor/samsung/mondrianlte" remote="nyyu" />
<project name="lineage/android_vendor_samsung_mondrianwifi" path="vendor/samsung/mondrianwifi" remote="nyyu" />
<project name="LineageOS/android_device_samsung_msm8974-common" path="device/samsung/msm8974-common" remote="github" />
<project name="LineageOS/android_device_samsung_qcom-common" path="device/samsung/qcom-common" remote="github" />
<project name="LineageOS/android_hardware_samsung" path="hardware/samsung" remote="github" />
<project name="LineageOS/android_hardware_sony_timekeep" path="hardware/sony/timekeep" remote="github" />
<project name="TheMuppets/proprietary_vendor_samsung" path="vendor/samsung" remote="github" />
<remove-project name="platform/prebuilts/clang/host/darwin-x86" />
<remove-project name="LineageOS/android_prebuilts_gcc_darwin-x86_aarch64_aarch64-linux-android-4.9" />
<remove-project name="LineageOS/android_prebuilts_gcc_darwin-x86_arm_arm-linux-androideabi-4.9" />
<remove-project name="platform/prebuilts/gcc/darwin-x86/host/i686-apple-darwin-4.2.1" />
<remove-project name="LineageOS/android_prebuilts_gcc_darwin-x86_x86_x86_64-linux-android-4.9" />
<remove-project name="platform/prebuilts/gdb/darwin-x86" />
<remove-project name="platform/prebuilts/go/darwin-x86" />
<remove-project name="platform/prebuilts/python/darwin-x86/2.7.5" />
</manifest>

View File

@ -1,5 +0,0 @@
version=18.1
work=/drone/lineage-$version
device=mondrianwifi
httpdir=/srv/http/drone
publishdir=/mnt/android/lineage/$version/$device

34
sync.sh Normal file
View File

@ -0,0 +1,34 @@
#!/bin/bash
TOPDIR=$(pwd)
changelog=${TOPDIR}/changelog-${device}-${version}.md
declare -A before
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse HEAD)"'))
for i in "${tmp[@]}"; do
IFS=: read -r folder commit <<<"${i}"
before[${folder}]=${commit}
done
repo sync -q -c -j 6 --fail-fast --force-sync --no-tags
echo -e "# Build $(date '+%Y-%m-%d %H:%M:%S') UTC\n" >>"${changelog}"
tmp=($(repo forall -c 'echo "${REPO_PATH}:$(git rev-parse --short HEAD)"'))
for i in "${tmp[@]}"; do
IFS=: read -r folder commit <<<"${i}"
if [[ "${folder}" != lineage/* && "${before[${folder}]}" != "${commit}" ]]; then
cd "${folder}" || continue
log=$(git --no-pager log --pretty=format:"- %s" "${before[${folder}]}".."${commit}")
if [[ $(echo -n "$log" | wc -c) != 0 ]]; then
{
echo "## ${folder} ${before[${folder}]}..${commit}"
echo "$log"
echo
} >>"${changelog}"
fi
cd "${TOPDIR}" || continue
fi
done
echo -e "\n" >>"${changelog}"
cat "${changelog}"