If you encounter the following:
GitHub rate limit reached. To increase the limit use GitHub authentication.
Run jspm endpoint config github to set this up.
Sources :
- https://github.com/jspm/jspm-cli/wiki/Registries
- https://github.com/travis-ci/travis.rb#installation
-
Create a token , label it "Travis"
-
Copy paste the token
-
jspm registry config github
You'll be asked for the token
jspm registry export github
outputs:
jspm config registries.github.remote https://github.jspm.io
jspm config registries.github.auth JSPM_GITHUB_AUTH_TOKEN
jspm config registries.github.maxRepoSize 100
jspm config registries.github.handler jspm-github
JSPM_GITHUB_AUTH_TOKEN
: unencrypted Base64 encoding of your GitHub username and password or access token
$ ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-darwin12.3.0]
$ gem install travis -v 1.8.0 --no-rdoc --no-ri
$ travis version
1.8.0
- Go to the root of your repo, encrypt the token your
JSPM_GITHUB_AUTH_TOKEN
travis encrypt 'JSPM_GITHUB_AUTH_TOKEN=[JSPM_GITHUB_AUTH_TOKEN]'
outputs your ENCRYPTED_STRING
- Include in your
.travis.yml
env:
global:
- secure: [ENCRYPTED_STRING]
before_install:
- npm install -g jspm
- jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN
- Optional
nano ~/.jspm/config
remove the registries.github
part so that the token will only be used by Travis (not by you).
But don't forget (and correct me if I'm wrong), the token will only be used by master and branch from repository, not by Pull Request... because it's sensitive data