Factorizes some Travis CI tests to avoid rebuilding envs all the time.