From 6e5004f18b5f00044d5e4b2d26828d2ded76a670 Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Tue, 25 Aug 2020 00:05:22 +0200 Subject: [PATCH] upgpkg: controller-testing v0.3.1 upgpkg: core-testing v0.3.1 add: skip drone steps when not changed (based on git) --- .drone.yml | 20 ++++++++++++++++++++ controller-testing/PKGBUILD | 8 ++++---- controller-testing/controller.ini | 2 +- core-testing/PKGBUILD | 4 ++-- 4 files changed, 27 insertions(+), 7 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8a08ddf..6ba1f75 100644 --- a/.drone.yml +++ b/.drone.yml @@ -13,26 +13,31 @@ steps: image: serguzim/emgauwa-packager:aarch64 commands: - cd core/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-core-testing image: serguzim/emgauwa-packager:aarch64 commands: - cd core-testing/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-controller image: serguzim/emgauwa-packager:aarch64 commands: - cd controller/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-controller-testing image: serguzim/emgauwa-packager:aarch64 commands: - cd controller-testing/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-webapp image: serguzim/emgauwa-packager:aarch64 commands: - cd webapp/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: upload-packages image: serguzim/drone-webdav:aarch64 @@ -72,26 +77,31 @@ steps: image: serguzim/emgauwa-packager:armv6h commands: - cd core/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-core-testing image: serguzim/emgauwa-packager:armv6h commands: - cd core-testing/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-controller image: serguzim/emgauwa-packager:armv6h commands: - cd controller/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-controller-testing image: serguzim/emgauwa-packager:armv6h commands: - cd controller-testing/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-webapp image: serguzim/emgauwa-packager:armv6h commands: - cd webapp/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: upload-packages image: serguzim/drone-webdav:armv7h @@ -131,26 +141,31 @@ steps: image: serguzim/emgauwa-packager:armv7h commands: - cd core/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-core-testing image: serguzim/emgauwa-packager:armv7h commands: - cd core-testing/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-controller image: serguzim/emgauwa-packager:armv7h commands: - cd controller/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-controller-testing image: serguzim/emgauwa-packager:armv7h commands: - cd controller-testing/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-webapp image: serguzim/emgauwa-packager:armv7h commands: - cd webapp/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: upload-packages image: serguzim/drone-webdav:armv7h @@ -190,26 +205,31 @@ steps: image: serguzim/emgauwa-packager:x86_64 commands: - cd core/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-core-testing image: serguzim/emgauwa-packager:x86_64 commands: - cd core-testing/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-controller image: serguzim/emgauwa-packager:x86_64 commands: - cd controller/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-controller-testing image: serguzim/emgauwa-packager:x86_64 commands: - cd controller-testing/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: makepkg-webapp image: serguzim/emgauwa-packager:x86_64 commands: - cd webapp/ + - [ -z "$(git diff HEAD^ .)" ] || exit 0 - makepkg -s -f --cleanbuild --noconfirm - name: upload-packages image: serguzim/drone-webdav:x86_64 diff --git a/controller-testing/PKGBUILD b/controller-testing/PKGBUILD index a5ffd1c..333ac96 100644 --- a/controller-testing/PKGBUILD +++ b/controller-testing/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Tobias Reisinger pkgname=emgauwa-controller-testing -pkgver=0.3.0 -pkgrel=2 +pkgver=0.3.1 +pkgrel=1 epoch= pkgdesc="" arch=('x86_64' 'armv6h' 'armv7h' 'aarch64') @@ -19,8 +19,8 @@ source=("https://git.serguzim.me/emgauwa/controller/archive/testing-v$pkgver.tar "emgauwa-controller-testing.service" "emgauwa-controller-testing.sysusers" "emgauwa-controller-testing.tmpfiles") -sha256sums=('cd8f995b42f67f60d278be51b9ea77af9200329dae169d38d3f15dc098873f53' - 'cfbf05b5e3045c9aad3979f366bdda6c5ca7d47e1bb4ad3bf855a39b99e88417' +sha256sums=('80376f1f37ec4866ca96042e4bb1af802592177a433e895484715b1642294a2c' + '5bfbe580ef1a373e3c025f28f3de591ba7ce57c4aba20bd1cc62555043d7bd13' '0bbc44d680be2011800c553ae863663148be0820f08349993578c88e9a23b143' 'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798' 'e62f47b41f0c4f116007ca0e05e0a50b45446763ccfa91b946b9d451c83ff5b4') diff --git a/controller-testing/controller.ini b/controller-testing/controller.ini index 8d5deb0..b150964 100644 --- a/controller-testing/controller.ini +++ b/controller-testing/controller.ini @@ -8,7 +8,7 @@ mqtt-port = 1884 mqtt-host = localhost relay-count = 10 -database = /var/lib/emgauwa/controller/db.lmdb +database = /var/lib/emgauwa/controller/db.sqlite log-level = debug log-file = /var/log/emgauwa/controller.log diff --git a/core-testing/PKGBUILD b/core-testing/PKGBUILD index 3c0a567..4ff20e2 100644 --- a/core-testing/PKGBUILD +++ b/core-testing/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: Tobias Reisinger pkgname=emgauwa-core-testing -pkgver=0.3.0 +pkgver=0.3.1 pkgrel=1 epoch= pkgdesc="" @@ -17,7 +17,7 @@ source=("https://git.serguzim.me/emgauwa/core/archive/testing-v$pkgver.tar.gz" "emgauwa-core-testing.service" "emgauwa-core-testing.sysusers" "emgauwa-core-testing.tmpfiles") -sha256sums=('6fb8f24faf4dc60b83bcae88fa63b1a71888b954f6ac57729b86878e9f250f43' +sha256sums=('7fd169ce8223dddba8da572c5f6b23796d98a16c107fba16f44b2848ee6df398' '210c8a05bae65e5f19c0c168b0f8c63d064706a9e7885a22a57ca7b04ea4e00f' 'c781f4d50da8e158551a47a8549981dad05faaf2d632c4fde8b36b48474ab0ec' 'b9cde58b9e9b0605ca4a1eddd78067c55aa3c8d40f80cde0a25c4da9f6f95798'