Using secret api keys on travis-ci

前端 未结 4 582
无人共我
无人共我 2020-11-30 18:41

I\'d like to use travis-ci for one of my projects.

The project is an API wrapper, so many of the tests rely on the use of secret API keys. To test locally, I just st

4条回答
  •  情歌与酒
    2020-11-30 19:42

    according to this in travis ci documentation it's said that :

    If you have both the Heroku and Travis CI command line clients installed, you can get your key, encrypt it and add it to your .travis.yml by running the following command from your project directory:

    travis encrypt $(heroku auth:token) --add deploy.api_key
    

    refer to the following tutorial to install heroku client according to your OS

提交回复
热议问题