Skip to content

Commit 09a0bf1

Browse files
committed
fixed --idea unit test by adding mock idea binary
1 parent 95f5e73 commit 09a0bf1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.travis.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,16 @@ install:
6161

6262
## does it run outside of test-suite?
6363
- kscript --help
64-
- java -version
64+
- java -version
6565
- mvn --version
6666

67-
## - kscript 'println("kotlin rocks")'
67+
## create mock `idea` to allow for idea environment bootstrapping tests (see kscript_nocall)
68+
- touch idea && chmod +x idea
69+
70+
- kscript 'println("kotlin rocks")'
6871
## - kscript ${KSCRIPT_HOME}/test/resources/multi_line_deps.kts
69-
- export tmpDir=$(kotlin -classpath ${KSCRIPT_HOME}/build/libs/kscript.jar kscript.app.KscriptKt --idea test/resources/includes/include_variations.kts | cut -f2 -d" ")
70-
cd $tmpDir && gradle build
72+
# - export tmpDir=$(kotlin -classpath ${KSCRIPT_HOME}/build/libs/kscript.jar kscript.app.KscriptKt --idea test/resources/includes/include_variations.kts | cut -f2 -d" ")
73+
# cd $tmpDir && gradle build
7174

7275
# - resdeps.kts org.org.docopt:org.docopt:0.6.0-SNAPSHOT log4j:log4j:1.2.14
7376
# - kscript ${KSCRIPT_HOME}/test/resources/multi_line_deps.kts

0 commit comments

Comments
 (0)