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 945351a commit 14ac177
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .circleci/authReact.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ frontendDriverVersion=`echo $frontendDriverVersion | tr -d '"'`

if [ -f fdi-node-map.json ]
then
nodeTag=`cat fdi-node-map.json | jq '.["'$frontendDriverVersion'"]'`
nodeTag=`cat fdi-node-map.json | jq '.["'$frontendDriverVersion'"]'` | tr -d '"'
else
nodeVersionXY=`curl -s -X GET \
"https://api.supertokens.io/0/frontend-driver-interface/dependency/driver/latest?password=$SUPERTOKENS_API_KEY&mode=DEV&version=$frontendDriverVersion&driverName=node&frontendName=auth-react" \
Expand All @@ -68,7 +68,7 @@ fi

if [ -f fdi-auth-react-map.json ]
then
frontendAuthReactTag=`cat fdi-auth-react-map.json | jq '.["'$frontendDriverVersion'"]'`
frontendAuthReactTag=`cat fdi-auth-react-map.json | jq '.["'$frontendDriverVersion'"]'` | tr -d '"'
else
frontendAuthReactVersionXY=`curl -s -X GET \
"https://api.supertokens.io/0/frontend-driver-interface/dependency/frontend/latest?password=$SUPERTOKENS_API_KEY&frontendName=auth-react&mode=DEV&version=$frontendDriverVersion&driverName=node" \
Expand Down
2 changes: 1 addition & 1 deletion .circleci/doUnitTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ coreDriverVersion=`echo $coreDriverVersion | tr -d '"'`

if [ -f cdi-core-map.json ]
then
coreFree=`cat cdi-core-map.json | jq '.["'$coreDriverVersion'"]'`
coreFree=`cat cdi-core-map.json | jq '.["'$coreDriverVersion'"]'` | tr -d '"'
else
coreFree=`curl -s -X GET \
"https://api.supertokens.io/0/core-driver-interface/dependency/core/latest?password=$SUPERTOKENS_API_KEY&planType=FREE&mode=DEV&version=$coreDriverVersion&driverName=node" \
Expand Down
4 changes: 2 additions & 2 deletions .circleci/setupAndTestBackendSDKWithFreeCore.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coreVersionXY=$1
if [ -f "cdi-core-map.json" ]
then
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]'`
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]'` | tr -d '"'
coreVersion=$coreTag
coreVersionXY=$coreTag
else
Expand All @@ -19,7 +19,7 @@ fi

if [ -f "cdi-plugin-interface-map.json" ]
then
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]'`
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]'` | tr -d '"'
pluginInterfaceVersionXY=$pluginInterfaceTag
pluginInterfaceVersion=$pluginInterfaceTag
else
Expand Down
4 changes: 2 additions & 2 deletions .circleci/setupAndTestWithAuthReact.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coreVersionXY=$1
if [ -f "cdi-core-map.json" ]
then
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]'`
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]'` | tr -d '"'
coreVersion=$coreTag
coreVersionXY=$coreTag
else
Expand All @@ -19,7 +19,7 @@ fi

if [ -f "cdi-plugin-interface-map.json" ]
then
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]'`
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]'` | tr -d '"'
pluginInterfaceVersionXY=$pluginInterfaceTag
pluginInterfaceVersion=$pluginInterfaceTag
else
Expand Down
4 changes: 2 additions & 2 deletions .circleci/setupAndTestWithFreeCore.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coreVersionXY=$1
if [ -f "cdi-core-map.json" ]
then
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]'`
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]'` | tr -d '"'
coreVersion=$coreTag
coreVersionXY=$coreTag
else
Expand All @@ -19,7 +19,7 @@ fi

if [ -f "cdi-plugin-interface-map.json" ]
then
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]'`
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]'` | tr -d '"'
pluginInterfaceVersionXY=$pluginInterfaceTag
pluginInterfaceVersion=$pluginInterfaceTag
else
Expand Down
4 changes: 2 additions & 2 deletions .circleci/setupAndTestWithFrontend.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
coreVersionXY=$1
if [ -f "cdi-core-map.json" ]
then
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]'`
coreTag=`cat cdi-core-map.json | jq '.["'$1'"]'` | tr -d '"'
coreVersion=$coreTag
coreVersionXY=$coreTag
else
Expand All @@ -19,7 +19,7 @@ fi

if [ -f "cdi-plugin-interface-map.json" ]
then
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]'`
pluginInterfaceTag=`cat cdi-plugin-interface-map.json | jq '.["'$1'"]'` | tr -d '"'
pluginInterfaceVersionXY=$pluginInterfaceTag
pluginInterfaceVersion=$pluginInterfaceTag
else
Expand Down
4 changes: 2 additions & 2 deletions .circleci/website.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ frontendDriverVersion=`echo $frontendDriverVersion | tr -d '"'`

if [ -f fdi-website-map.json ]
then
frontendTag=`cat fdi-website-map.json | jq '.["'$frontendDriverVersion'"]'`
frontendTag=`cat fdi-website-map.json | jq '.["'$frontendDriverVersion'"]'` | tr -d '"'
else
frontendVersionXY=`curl -s -X GET \
"https://api.supertokens.io/0/frontend-driver-interface/dependency/frontend/latest?password=$SUPERTOKENS_API_KEY&frontendName=website&mode=DEV&version=$frontendDriverVersion&driverName=node" \
Expand All @@ -69,7 +69,7 @@ fi

if [ -f fdi-node-map.json ]
then
nodeTag=`cat fdi-node-map.json | jq '.["'$frontendDriverVersion'"]'`
nodeTag=`cat fdi-node-map.json | jq '.["'$frontendDriverVersion'"]'` | tr -d '"'
else
nodeVersionXY=`curl -s -X GET \
"https://api.supertokens.io/0/frontend-driver-interface/dependency/driver/latest?password=$SUPERTOKENS_API_KEY&mode=DEV&version=$frontendDriverVersion&driverName=node&frontendName=website" \
Expand Down

0 comments on commit 14ac177

Please sign in to comment.