Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add IntelliJ IDEA Run Configurations #8

Merged
merged 8 commits into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
150 changes: 0 additions & 150 deletions utils/setupDevEnv

This file was deleted.

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
rishabhpoddar marked this conversation as resolved.
Show resolved Hide resolved