This repository has been archived by the owner on Oct 5, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 89
Travis CI Authentication
ajoberstar edited this page Sep 27, 2014
·
1 revision
In case you plan to use Travis-CI make sure to follow the travis guide on encrypted keys to setup an encrypted authentication token like the following:
- Create a new "Personal Access Token” on Github at https://github.com/settings/applications and name it whatever fits your needs
- Install the travis CLI on your local machine via “gem install travis” (NOTE: ruby needs to be installed locally!!)
- Encrypt your Personal Access Token via “travis encrypt GH_TOKEN=”
- add the encrypted token to your
.travis.yml
file like the following
# ...
env:
global:
- secure: "E6iGay3wQcbhAUM5S5WkjYUmg6b7oJG9l8T2y0WWRgx50oqR0/jGzCYHpJGCHlb9OOZpB2BnhpYS6fCg09MsPYKcgsMXgjYzozWGBYifBIVNI07zQhDByztWr3fsrwrZc31ifqC3EGL/UEwvN5F093rRufDw2jomGpFQn7gL4Kc="
- Adjust your credentials in the
build.gradle
to something like
githubPages {
// ...
credentials {
username = System.getenv('GH_TOKEN')
password = ''
}
}