-
Notifications
You must be signed in to change notification settings - Fork 32
speed up local build time by 97% #82
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
testing on Travis Linux builds
@optimizely/fullstack-devs |
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.
Awesome, 0.783 secs
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.*; |
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.
let's use explicit imports
import static org.mockito.Mockito.mock; | ||
import static org.mockito.Mockito.verify; | ||
import static org.mockito.Mockito.when; | ||
import static org.junit.Assert.*; |
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.
explicit imports
@@ -79,6 +70,7 @@ public void generateBucketValueForNegativeHashCodes() throws Exception { | |||
@Test | |||
@Category(ExhaustiveTest.class) | |||
public void generateBucketValueDistribution() throws Exception { | |||
Assume.assumeTrue(System.getProperty("os.name").contains("Linux")); |
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.
http://docs.oracle.com/javase/6/docs/api/java/lang/System.html#getenv(java.lang.String)
we could use an environment variable RUN_EXHAUSTIVE_BUCKETING
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.
looks good, just fix the imports
skip the exhaustive
generateBucketValueDistribution
when we're not testing on Travis Linux builds