better travis.yaml logic