Travis check for syntax and lint before spec tests

Without this patch lint and syntax checks were not being done before the
rspec tests. This ensures that the code can be parsed and passes lint
before the spec tests.