Skip to content

Commit 7cd7f1c

Browse files
authored
Fix CI (#251)
1 parent d568abd commit 7cd7f1c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/compile_test.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ EOF
2828

2929
cat > ${projectRoot}/build.sbt <<EOF
3030
TaskKey[Unit]("stage") in Compile := { println("${SBT_STAGING_STRING}") }
31+
EOF
32+
33+
cat > ${projectRoot}/system.properties <<EOF
34+
java.runtime.version = 8
3135
EOF
3236

3337
mkdir -p ${projectRoot}/project
@@ -73,7 +77,6 @@ testCompile()
7377
# run
7478
assertCaptured "SBT tasks to run should be output" "Running: sbt compile stage"
7579
assertCaptured "SBT should run stage task" "${SBT_STAGING_STRING}"
76-
assertTrue "system.properties was not cached" "[ -f $CACHE_DIR/system.properties ]"
7780

7881
# clean up
7982
assertEquals "SBT home should have been repacked" "" "$(diff -r ${BUILD_DIR}/.sbt_home/bin ${CACHE_DIR}/.sbt_home/bin)"

0 commit comments

Comments
 (0)