Travis CI¶
An example YAML file for configuring Uplift to run on Travis CI. Access to GitHub is managed through their dedicated GitHub Application. Uplift requires write permissions to your repository, a Personal Access Token needs to be configured with the public_repo
permission and added to Travis CI as an encrypted variable.
- If you have configured Travis CI to use a build matrix, a condition like this should be used to ensure Uplift is only run once.
- You will need to download Travis in order to encrypt variables. Once downloaded, you must first login
travis --login --pro --github-token=<TRAVIS_TOKEN>
and then generate an encrypted variable with a command similar toecho GH_UPLIFT=<PERSONAL_ACCESS_TOKEN> | travis encrypt --add --pro