Change build strategy for travis-ci