$ travis encrypt-file bacon.txtencrypting bacon.txt for rkh/travis-encrypt-file-examplestoring result as bacon.txt.encstoring secure env variables for decryptionPlease add the following to your build script (before_install stage in your .travis.yml, for instance): openssl aes-256-cbc -K $encrypted_0a6446eb3ae3_key -iv $encrypted_0a6446eb3ae3_key -in bacon.txt.enc -out bacon.txt -dPro Tip: You can add it automatically by running with --add.Make sure to add bacon.txt.enc to the git repository.Make sure not to add bacon.txt to the git repository.Commit all changes to your .travis.yml.
$ travis encrypt-file bacon.txt --addencrypting bacon.txt for rkh/travis-encrypt-file-examplestoring result as bacon.txt.encstoring secure env variables for decryptionMake sure to add bacon.txt.enc to the git repository.Make sure not to add bacon.txt to the git repository.Commit all changes to your .travis.yml.
详细信息请看官方文档,实际的例子可以参考下面两篇文章。
Auto-deploying built products to gh-pages with Travis