From: Matthew Owens Date: Thu, 20 Jun 2024 20:37:26 +0000 (+0100) Subject: updated script X-Git-Url: https://git.owens.tech///git?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=scripts.git updated script --- diff --git a/abyss-module b/abyss-module index f23a428..0cfb559 100755 --- a/abyss-module +++ b/abyss-module @@ -46,14 +46,22 @@ cd $ABYSS_DIR gh repo create $ORG/$MODULE_NAME --template $ORG/module-template --private -y gh repo create $ORG/$MODULE_NAME-test --template $ORG/test-template --private -y + +gh repo clone $ORG/$MODULE_NAME +gh repo clone $ORG/$MODULE_NAME-test + +cd $MODULE_NAME-test +./init_tests.sh $MODULE_NAME +git commit -am "initilised $MODULE_NAME-test from template" +git push +cd .. + # removing the local test dir, since we'll add it as a submodule later rm -rf $MODULE_NAME-test cd $MODULE_NAME ./init_module.sh $MODULE_NAME +git commit -am "initilised $MODULE_NAME from template" git submodule add git@github.com:$ORG/$MODULE_NAME-test -cd $MODULE_NAME-test -./init_tests.sh $MODULE_NAME -cd .. git commit -am "added $MODULE_NAME-test submodule" git push