From e8184659e5dc8594146427bcf66a7b58dc4be315 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 20 Mar 2024 06:00:59 +0000 Subject: [PATCH] create release script --- Config/rectortmp.php | 53 --------------------------------- Helper/Scripts/release.sh | 62 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 53 deletions(-) delete mode 100644 Config/rectortmp.php create mode 100644 Helper/Scripts/release.sh diff --git a/Config/rectortmp.php b/Config/rectortmp.php deleted file mode 100644 index 0bd31ca..0000000 --- a/Config/rectortmp.php +++ /dev/null @@ -1,53 +0,0 @@ -sets([ - PHPUnitSetList::PHPUNIT_100, - PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES, - ]); - - $rectorConfig->paths([ - __DIR__ . '/../../tests', - __DIR__ . '/../../Modules/**/tests', - __DIR__ . '/../../phpOMS/tests', - ]); - - $rectorConfig->skip([ - __DIR__ . '/../../vendor', - '*/vendor', - '*/node_modules', - __DIR__ . '/../../privateSetup', - __DIR__ . '/../../demoSetup', - __DIR__ . '/../../Build', - __DIR__ . '/../../MainRepository', - __DIR__ . '/../../Resources', - __DIR__ . '/../../Tools', - __DIR__ . '/../../Sandbox', - __DIR__ . '/../../cssOMS', - '*/Admin/Install/Application', - ]); -}; \ No newline at end of file diff --git a/Helper/Scripts/release.sh b/Helper/Scripts/release.sh new file mode 100644 index 0000000..8cfa434 --- /dev/null +++ b/Helper/Scripts/release.sh @@ -0,0 +1,62 @@ +#!/bin/bash + +echo "#################################################" +echo "# Build develop" +echo "#################################################" + +git submodule foreach git checkout develop +git submodule foreach git pull + +git checkout develop +git pull + +npm run scss +npm run release + +echo "#################################################" +echo "# Update develop submodules" +echo "#################################################" + +git submodule foreach git add . +git submodule foreach "git commit -m 'Preparing for master update' || true" +git submodule foreach git push + +echo "#################################################" +echo "# Update develop main repo" +echo "#################################################" + +git git add . +git git commit -m "Preparing for master update" +git git push + +echo "#################################################" +echo "# Switch to master" +echo "#################################################" + +git submodule foreach git checkout master +git submodule foreach git pull + +git checkout master +git pull + +echo "#################################################" +echo "# Merge develop" +echo "#################################################" + +git submodule foreach git merge develop +git git merge develop + +git submodule foreach git add . +git submodule foreach "git commit -m 'Update master' || true" +git submodule foreach git push + +git git add . +git git commit -m "Update master" +git git push + +echo "#################################################" +echo "# Switch to develop" +echo "#################################################" + +git submodule foreach git checkout develop +git checkout develop \ No newline at end of file