You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Travis seems to fail the build and emit Trailing whitespace or No newline at EOF errors, despite our team passing the corresponding gradle tasks checkstyleMain, checkstyleTest
Solution
Apparently this is due to the extra run-checks.sh script being run on travis. I added the following lines to the build.gradle file so that the check task also runs the travis script. Any suggestions are welcome.
Just to add on, you will need git add the files that you have fixed before running the above command again. Otherwise, you may see the same error thrown despite having fixed the problem. The reason is that run-checks.sh will call git grep --cached which searches in the staging area.
Issue
Travis seems to fail the build and emit
Trailing whitespace
orNo newline at EOF
errors, despite our team passing the corresponding gradle taskscheckstyleMain
,checkstyleTest
Solution
Apparently this is due to the extra
run-checks.sh
script being run on travis. I added the following lines to thebuild.gradle
file so that thecheck
task also runs the travis script. Any suggestions are welcome.This way, you can run the
check
task on your local repo and fix any issues before submitting to travis.The text was updated successfully, but these errors were encountered: