Skip to content

Commit c2ec044

Browse files
Merge pull request #8 from JeremyEastham/master
feat: Add IntelliJ IDEA Run Configurations
2 parents 53c9dbc + 2f6c592 commit c2ec044

15 files changed

+97
-19
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ LICENSE.md
9797
.idea/**/uiDesigner.xml
9898
.idea/**/dbnavigator.xml
9999

100+
# Other files
101+
.idea/runConfigurations.xml
102+
100103
# Gradle
101104
.idea/**/gradle.xml
102105
.idea/**/libraries

.idea/misc.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Lint.xml

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Load_Modules.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Run_All_Tests.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/Start_Testing_Environment.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

startTestingEnv

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ fi
3131

3232
if [[ $wait = "true" ]]
3333
then
34+
echo "Test environment started! Leave this script running while running tests."
3435
# we wait for user to end the session
3536
while [[ true ]]
3637
do
37-
echo "Running test env"
38+
echo "Test environment running..."
3839
sleep 2
3940
done
4041
else
42+
echo "Running all tests..."
4143
# ../ because the tests are run relative to the project's folder.
4244
./gradlew test
4345
fi

utils/addDevTag

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
# check if we need to merge master into this branch------------
23
if [[ $(git log origin/master ^HEAD) ]]; then
34
echo "You need to merge master into this branch. Exiting"

utils/addReleaseTag

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
# working directory is inside supertokens-*/. Expects a releasePassword file to be ../
23
# ./addReleaseTag [--forced]
34
# get version------------

utils/cleanDevEnv

Lines changed: 0 additions & 10 deletions
This file was deleted.

utils/cleanTestEnvCicd

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
rm -rf core
23
rm -rf plugin-interface
34
rm -rf plugin
@@ -7,4 +8,5 @@ rm version.yaml
78
rm -rf temp
89
rm install
910
rm install.bat
10-
rm LICENSE.md
11+
rm LICENSE.md
12+
rm .testEnvRunning

utils/cleanTestEnvLocal

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/bin/bash
12
rm -rf core
23
rm -rf plugin-interface
34
rm -rf plugin
@@ -7,4 +8,5 @@ rm version.yaml
78
rm -rf temp
89
rm install
910
rm install.bat
10-
rm LICENSE.md
11+
rm LICENSE.md
12+
rm .testEnvRunning

utils/createConfigFileForTesting

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
2-
> config_temp.yaml
1+
#!/bin/bash
2+
touch config_temp.yaml
33

44
prefix=`./utils/project-prefix`
55

utils/setupTestEnvCicd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1+
#!/bin/bash
12
# load version and jars
23
# setup jars, dependencies and version
34

45
./gradlew clean
5-
> version_temp.yaml
6+
touch version_temp.yaml
67

78
prefix=`./utils/project-prefix`
89

@@ -155,4 +156,5 @@ mv version_temp.yaml version.yaml
155156
./utils/createConfigFileForTesting
156157
mkdir temp
157158
cp config.yaml temp/config.yaml
158-
rm config.yaml
159+
rm config.yaml
160+
touch .testEnvRunning

utils/setupTestEnvLocal

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
#!/bin/bash
12
# setup jars, dependencies and version
23

34
./gradlew clean
4-
> version_temp.yaml
5+
touch version_temp.yaml
56

67
prefix=`./utils/project-prefix`
78

@@ -138,4 +139,5 @@ mv version_temp.yaml version.yaml
138139
./utils/createConfigFileForTesting
139140
mkdir temp
140141
cp config.yaml temp/config.yaml
141-
rm config.yaml
142+
rm config.yaml
143+
touch .testEnvRunning

0 commit comments

Comments
 (0)