Skip to content

Commit

Permalink
Merge pull request #8 from JeremyEastham/master
Browse files Browse the repository at this point in the history
feat: Add IntelliJ IDEA Run Configurations
  • Loading branch information
rishabhpoddar authored Apr 22, 2022
2 parents 53c9dbc + 2f6c592 commit c2ec044
Show file tree
Hide file tree
Showing 15 changed files with 97 additions and 19 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ LICENSE.md
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

# Other files
.idea/runConfigurations.xml

# Gradle
.idea/**/gradle.xml
.idea/**/libraries
Expand Down
1 change: 1 addition & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/runConfigurations/Lint.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations/Load_Modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations/Run_All_Tests.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions .idea/runConfigurations/Start_Testing_Environment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion startTestingEnv
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ fi

if [[ $wait = "true" ]]
then
echo "Test environment started! Leave this script running while running tests."
# we wait for user to end the session
while [[ true ]]
do
echo "Running test env"
echo "Test environment running..."
sleep 2
done
else
echo "Running all tests..."
# ../ because the tests are run relative to the project's folder.
./gradlew test
fi
1 change: 1 addition & 0 deletions utils/addDevTag
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# check if we need to merge master into this branch------------
if [[ $(git log origin/master ^HEAD) ]]; then
echo "You need to merge master into this branch. Exiting"
Expand Down
1 change: 1 addition & 0 deletions utils/addReleaseTag
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
# working directory is inside supertokens-*/. Expects a releasePassword file to be ../
# ./addReleaseTag [--forced]
# get version------------
Expand Down
10 changes: 0 additions & 10 deletions utils/cleanDevEnv

This file was deleted.

4 changes: 3 additions & 1 deletion utils/cleanTestEnvCicd
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
rm -rf core
rm -rf plugin-interface
rm -rf plugin
Expand All @@ -7,4 +8,5 @@ rm version.yaml
rm -rf temp
rm install
rm install.bat
rm LICENSE.md
rm LICENSE.md
rm .testEnvRunning
4 changes: 3 additions & 1 deletion utils/cleanTestEnvLocal
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
rm -rf core
rm -rf plugin-interface
rm -rf plugin
Expand All @@ -7,4 +8,5 @@ rm version.yaml
rm -rf temp
rm install
rm install.bat
rm LICENSE.md
rm LICENSE.md
rm .testEnvRunning
4 changes: 2 additions & 2 deletions utils/createConfigFileForTesting
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

> config_temp.yaml
#!/bin/bash
touch config_temp.yaml

prefix=`./utils/project-prefix`

Expand Down
6 changes: 4 additions & 2 deletions utils/setupTestEnvCicd
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
#!/bin/bash
# load version and jars
# setup jars, dependencies and version

./gradlew clean
> version_temp.yaml
touch version_temp.yaml

prefix=`./utils/project-prefix`

Expand Down Expand Up @@ -155,4 +156,5 @@ mv version_temp.yaml version.yaml
./utils/createConfigFileForTesting
mkdir temp
cp config.yaml temp/config.yaml
rm config.yaml
rm config.yaml
touch .testEnvRunning
6 changes: 4 additions & 2 deletions utils/setupTestEnvLocal
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
#!/bin/bash
# setup jars, dependencies and version

./gradlew clean
> version_temp.yaml
touch version_temp.yaml

prefix=`./utils/project-prefix`

Expand Down Expand Up @@ -138,4 +139,5 @@ mv version_temp.yaml version.yaml
./utils/createConfigFileForTesting
mkdir temp
cp config.yaml temp/config.yaml
rm config.yaml
rm config.yaml
touch .testEnvRunning

0 comments on commit c2ec044

Please sign in to comment.