Automate trailing whitespaces check in Travis

This should check in Travis if there are trailing whitespaces in the working directory and reject a pull request if there is.