-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix 5055: Run tests with Java 11 #6470
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise LGTM
.drone.yml
Outdated
image: lampepfl/dotty:2019-04-22 | ||
commands: | ||
- cp -R . /tmp/6/ && cd /tmp/6/ | ||
- JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/" ./project/scripts/sbt -java-home "/usr/lib/jvm/java-11-openjdk-amd64/" ";dotty-bootstrapped/compile ;dotty-bootstrapped/test; dotty-semanticdb/compile; dotty-semanticdb/test:compile;sjsSandbox/run;sjsSandbox/test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should only run this on merges, like the 2.12 tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 I'm gonna do that as a second commit so we can make sure that is passes on the CI (it works locally).
.drone.yml
Outdated
image: lampepfl/dotty:2019-04-22 | ||
commands: | ||
- cp -R . /tmp/6/ && cd /tmp/6/ | ||
- JAVA_HOME="/usr/lib/jvm/java-11-openjdk-amd64/" ./project/scripts/sbt -java-home "/usr/lib/jvm/java-11-openjdk-amd64/" ";dotty-bootstrapped/compile ;dotty-bootstrapped/test; dotty-semanticdb/compile; dotty-semanticdb/test:compile;sjsSandbox/run;sjsSandbox/test" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think instead of passing java home the simplest thing to do is set the PATH to start with "/usr/lib/jvm/java-11-openjdk-amd64/bin
48c0df6
to
942b45b
Compare
I tried to change the |
project/scripts/sbt
Outdated
if [ -z "$JAVA_HOME" ]; then | ||
SET_JAVA_VERSION="" | ||
else | ||
SET_JAVA_VERSION="-java-home" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not directly:
SET_JAVA_VERSION="-java-home" | |
SET_JAVA_VERSION="-java-home $JAVA_HOME" |
de276fc
to
050264b
Compare
bac592d
to
c32ead6
Compare
It works with the correct PATH!
No description provided.