projects
/
scripts.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
df793b0
)
updated script
master
author
Matthew Owens
<matthew@owens.tech>
Thu, 20 Jun 2024 20:37:26 +0000
(21:37 +0100)
committer
Matthew Owens
<matthew@owens.tech>
Thu, 20 Jun 2024 20:37:26 +0000
(21:37 +0100)
abyss-module
patch
|
blob
|
history
diff --git
a/abyss-module
b/abyss-module
index
f23a428
..
0cfb559
100755
(executable)
--- 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 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
# 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
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
git commit -am "added $MODULE_NAME-test submodule"
git push