update travis.yml to new API