Added --legacy flag to .travis.yml.