Skip to content

Commit

Permalink
ci: experiment with manually runnable ci with pre-set branchnames
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Sep 26, 2024
1 parent 446c38f commit 67c5478
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 12 deletions.
8 changes: 5 additions & 3 deletions .circleci/setupAndTestBackendSDKWithFreeCore.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
coreVersionXY=`echo $1 | tr -d '"'`
coreVersionXYParam=`echo $1 | tr -d '"'`
coreVersionXY=$coreVersionXYParam

if [ -f "cdi-core-map.json" ]
then
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]' | tr -d '"'`
coreTag=`cat cdi-core-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'`
if [ "$coreTag" != "null" ]
then
coreVersion=$coreTag
Expand All @@ -25,7 +27,7 @@ fi

if [ -f "cdi-plugin-interface-map.json" ]
then
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]' | tr -d '"'`
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'`
if [ "$pluginInterfaceTag" != "null" ]
then
pluginInterfaceVersionXY=$pluginInterfaceTag
Expand Down
8 changes: 5 additions & 3 deletions .circleci/setupAndTestWithAuthReact.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
coreVersionXY=$1
coreVersionXYParam=`echo $1 | tr -d '"'`
coreVersionXY=$coreVersionXYParam

if [ -f "cdi-core-map.json" ]
then
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]' | tr -d '"'`
coreTag=`cat cdi-core-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'`
if [ "$coreTag" != "null" ]
then
coreVersion=$coreTag
Expand All @@ -25,7 +27,7 @@ fi

if [ -f "cdi-plugin-interface-map.json" ]
then
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]' | tr -d '"'`
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'`
if [ "$pluginInterfaceTag" != "null" ]
then
pluginInterfaceVersionXY=$pluginInterfaceTag
Expand Down
8 changes: 5 additions & 3 deletions .circleci/setupAndTestWithFreeCore.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
coreVersionXY=$1
coreVersionXYParam=`echo $1 | tr -d '"'`
coreVersionXY=$coreVersionXYParam

if [ -f "cdi-core-map.json" ]
then
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]' | tr -d '"'`
coreTag=`cat cdi-core-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'`
if [ "$coreTag" != "null" ]
then
coreVersion=$coreTag
Expand All @@ -25,7 +27,7 @@ fi

if [ -f "cdi-plugin-interface-map.json" ]
then
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]' | tr -d '"'`
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'`
if [ "$pluginInterfaceTag" != "null" ]
then
pluginInterfaceVersionXY=$pluginInterfaceTag
Expand Down
8 changes: 5 additions & 3 deletions .circleci/setupAndTestWithFrontend.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
coreVersionXY=$1
coreVersionXYParam=`echo $1 | tr -d '"'`
coreVersionXY=$coreVersionXYParam

if [ -f "cdi-core-map.json" ]
then
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]' | tr -d '"'`
coreTag=`cat cdi-core-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'`
if [ "$coreTag" != "null" ]
then
coreVersion=$coreTag
Expand All @@ -25,7 +27,7 @@ fi

if [ -f "cdi-plugin-interface-map.json" ]
then
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]' | tr -d '"'`
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$coreVersionXYParam'"]' | tr -d '"'`
if [ "$pluginInterfaceTag" != "null" ]
then
pluginInterfaceVersionXY=$pluginInterfaceTag
Expand Down

0 comments on commit 67c5478

Please sign in to comment.