-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Travis CI #21
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
Travis CI #21
Conversation
Review by @sjrd, if possible. |
Seems to be working -- once the patch is merged, it should start building on Travis. |
@@ -0,0 +1,13 @@ | |||
language: scala | |||
script: | |||
- sbt ++$TRAVIS_SCALA_VERSION clean update compile 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.
what does ++$TRAVIS_SCALA_VERSION
do? where is it defined?
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.
It's defined by the Travis build to the current scala version, in case you use cross-compilation.
See this doc for the full explanation: http://docs.travis-ci.com/user/languages/scala/#Choosing-Scala-versions-to-test-against
lgtm |
Thanks @lrytz! |
got it. could we have travis pick up the scala version defined in |
Yes, let's do that. I'll make the changes in-place. |
At issue is that the optimizer would eliminate closure classes completely, then neglect to eliminate those classes from the container's InnerClasses attribute. This breaks tooling which expects those entries to correspond to real classes. The code change is essentially mgarcia's - I minimized it and put the caches in perRunCaches, and added the test case which verifies that after being compiled under -optimise, there are no inner classes. Before/after: 7,8d6 < InnerClasses: < public final scala#22; //class A_1$$anonfun$f$1 37,45c35,40 < scala#21 = Utf8 A_1$$anonfun$f$1 < scala#22 = Class scala#21 // A_1$$anonfun$f$1 < scala#23 = Utf8 Code --- > scala#21 = Utf8 Code
At issue is that the optimizer would eliminate closure classes completely, then neglect to eliminate those classes from the container's InnerClasses attribute. This breaks tooling which expects those entries to correspond to real classes. The code change is essentially mgarcia's - I minimized it and put the caches in perRunCaches, and added the test case which verifies that after being compiled under -optimise, there are no inner classes. Before/after: 7,8d6 < InnerClasses: < public final scala#22; //class A_1$$anonfun$f$1 37,45c35,40 < scala#21 = Utf8 A_1$$anonfun$f$1 < scala#22 = Class scala#21 // A_1$$anonfun$f$1 < scala#23 = Utf8 Code --- > scala#21 = Utf8 Code
Backport "Use bash shell when using here-strings" to LTS
Travis CI setup.