From 19e504748063093c0082dbdc9bac276c67b511e7 Mon Sep 17 00:00:00 2001 From: Matthew Owens Date: Thu, 20 Jun 2024 21:37:26 +0100 Subject: [PATCH] updated script --- abyss-module | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 -- 2.20.1