- perform first sbt compile and then sbt test

Try to solve the hanging build when test mysql and postgres.
It only happens on travis so hard to debug.