add apply command, update .travis.yml