-
-
Notifications
You must be signed in to change notification settings - Fork 766
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
Don't compile test snippets #2105
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2105 +/- ##
=========================================
Coverage 80.62% 80.62%
Complexity 2015 2015
=========================================
Files 336 336
Lines 5802 5802
Branches 1057 1057
=========================================
Hits 4678 4678
Misses 563 563
Partials 561 561 Continue to review full report at Codecov.
|
That's interesting. It works for AppVeyor but not for Travis? |
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.
Thanks! This looks fine and is an improvement over the old CI behavior! If @arturbosch is okay with it, we should merge this asap.
There're some conflicts to resolve. |
If you want to check that your code in the snippets compiles you can use the flag -Pcompile-test-snippets=true in gradle
Rebased to fix the conflicts |
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. I will try a build offline now :).
A good step forward to make compileAndLint
the default and rename it to just lint
later ^^
follow-up: #2105 This further speeds up detekt's CI and the tests runs on our local dev machines. The Jsr223 compiles engines aren't even created at startup anymore if the environment variable compile-snippet-tests is set to false.
* Don't compile the snippet codes in the test by default If you want to check that your code in the snippets compiles you can use the flag -Pcompile-test-snippets=true in gradle * Configure travis and appvenyor to compile the snippets
follow-up: #2105 This further speeds up detekt's CI and the tests runs on our local dev machines. The Jsr223 compiles engines aren't even created at startup anymore if the environment variable compile-snippet-tests is set to false.
* Don't compile the snippet codes in the test by default If you want to check that your code in the snippets compiles you can use the flag -Pcompile-test-snippets=true in gradle * Configure travis and appvenyor to compile the snippets
follow-up: detekt#2105 This further speeds up detekt's CI and the tests runs on our local dev machines. The Jsr223 compiles engines aren't even created at startup anymore if the environment variable compile-snippet-tests is set to false.
* Don't compile the snippet codes in the test by default If you want to check that your code in the snippets compiles you can use the flag -Pcompile-test-snippets=true in gradle * Configure travis and appvenyor to compile the snippets
follow-up: detekt#2105 This further speeds up detekt's CI and the tests runs on our local dev machines. The Jsr223 compiles engines aren't even created at startup anymore if the environment variable compile-snippet-tests is set to false.
Closes #2095
We need to check that our production is OK every time. But we don't need to check that our tests are OK every time too.
This change speeds up the tests about 2.5 times.
What do you think about the naming? I'm not sure...