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
Fix codecov inconsistencies #837
Conversation
Code Climate has analyzed commit 0681e2e and detected 0 issues on this pull request. View more on Code Climate. |
Codecov Report
@@ Coverage Diff @@
## main #837 +/- ##
===========================================
+ Coverage 58.04% 72.41% +14.36%
===========================================
Files 35 35
Lines 1423 1334 -89
===========================================
+ Hits 826 966 +140
+ Misses 597 368 -229
|
d7ba12f
to
0681e2e
Compare
I guess that worked? |
Let's try one last time |
Nice! |
.travis.yml
Outdated
@@ -19,6 +19,7 @@ install: | |||
- bundle check --path vendor/.bundle/ || bundle install --path vendor/.bundle/ | |||
- yarn check || yarn install | |||
- bundle exec rake db:setup || bundle exec rake db:migrate | |||
- rm -rf test/reports |
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.
There's no need to add this additional step to Travis, causing the build to be slower, I think you could just add test/reports to .gitignore (if its not there already), then remove this folder if its commited. But let's hear from @jywarren.
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 already in .gitignore
@alaxalves Can you help removing it from git tracking?
I don't think this has worked :( check out codecov @kaustubh-nair |
Huhhhhhh |
Okay I guess this fixed it? I'm still not sure what the exact problem is. I don't know how this is possible but is travis caching any old reports maybe? @alaxalves? |
Travis doesn't cache old reports because basically we "tell" him what to cache and since we have deleted the reports from git tracking it won't cache. Also everytime Travis uses a different runner and caching is made through a generated .tar.gz pack. But this seems to be working now. Maybe we had to explicitly set the formatter to be codecov. |
Ok cool! Great work piecing this together. Did you want to merge this now? 🎉👍🏽 |
@jywarren Yes lets merge this now |
👍 |
* start simplecov in test helper * Remove old reports before running * turn on project * Removing reports dir after job success * Update .travis.yml * Update .travis.yml * Change formatter declaration location * Remove reports during build * Update .travis.yml
Fixes #810
Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/mapknitter-reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!