Split the travis tests into two compile checks and a seperate lint check

As suggested in https://github.com/travis-ci/travis-ci/issues/1868