如何在提示时让Travis-CI输入密码?

时间:2013-01-28 12:27:42

标签: python google-app-engine travis-ci

我试图让Travis-CI在测试成功后将我的GAE应用程序上传到GAE。我认为我必须:

  1. before_script
  2. 下载GAE文件(如Run a Google App Engine on Travis-CI and test it with PhantomJS所示)
  3. after-script中,运行appcfg.py update
  4. 根据GAE的文档(https://developers.google.com/appengine/docs/python/tools/uploadinganapp#Uploading_the_App),它表示您无法输入密码作为命令行选项。

    我可以通过appcfg.py配置Travis-CI来输入我的密码吗?我知道Travis-CI能够存储和传递安全的环境变量(http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables

    谢谢!

1 个答案:

答案 0 :(得分:1)

使用Auth选项而不是使用用户/密码,并在travis脚本中提供令牌。