Fix Travis CI build script: install before tests