updated script master
authorMatthew Owens <matthew@owens.tech>
Thu, 20 Jun 2024 20:37:26 +0000 (21:37 +0100)
committerMatthew Owens <matthew@owens.tech>
Thu, 20 Jun 2024 20:37:26 +0000 (21:37 +0100)
abyss-module

index f23a428..0cfb559 100755 (executable)
@@ -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