jedimdan
jedimdan

Reputation: 58

How do I have Travis-CI enter a password when prompted?

I'm trying to have Travis-CI upload my GAE app to GAE after the tests succeed. I've figured that I have to:

  1. Download GAE files (As shown in Run a Google App Engine on Travis-CI and test it with PhantomJS) at before_script.
  2. In the after-script, run appcfg.py update.

According to GAE's documentation (https://developers.google.com/appengine/docs/python/tools/uploadinganapp#Uploading_the_App), though, it says that you cannot enter the password as a command-line option.

Is there a way I can configure Travis-CI to enter my password when prompted for it by appcfg.py? I am aware of Travis-CI's ability to store and pass secure environment variables (http://about.travis-ci.org/docs/user/build-configuration/#Secure-environment-variables)

Thank you!

Upvotes: 1

Views: 527

Answers (1)

Shay Erlichmen
Shay Erlichmen

Reputation: 31928

Instad of using user/password use the OAuth option and provide a token in your travis script.

Upvotes: 1

Related Questions