Skip to content
This repository has been archived by the owner on Oct 5, 2018. It is now read-only.

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:

  1. Create a new "Personal Access Token” on Github at https://github.com/settings/applications and name it whatever fits your needs
  2. Install the travis CLI on your local machine via “gem install travis” (NOTE: ruby needs to be installed locally!!)
  3. Encrypt your Personal Access Token via “travis encrypt GH_TOKEN=”
  4. add the encrypted token to your .travis.yml file like the following
# ...
env:
  global:
  - secure: "E6iGay3wQcbhAUM5S5WkjYUmg6b7oJG9l8T2y0WWRgx50oqR0/jGzCYHpJGCHlb9OOZpB2BnhpYS6fCg09MsPYKcgsMXgjYzozWGBYifBIVNI07zQhDByztWr3fsrwrZc31ifqC3EGL/UEwvN5F093rRufDw2jomGpFQn7gL4Kc="
  1. Adjust your credentials in the build.gradle to something like
githubPages {
  // ...
  credentials {
    username = System.getenv('GH_TOKEN')
    password = ''
  }
}
Clone this wiki locally