0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Merge pull request #4773 from jaswilli/travis-gh-oauth

Make authenticated GitHub API requests from Travis
This commit is contained in:
Matt Enlow 2015-01-08 09:48:51 -07:00
commit 33ce828a4a
3 changed files with 10 additions and 5 deletions

View file

@ -9,6 +9,9 @@ cache:
addons:
postgresql: "9.3"
env:
global:
- GITHUB_OAUTH_KEY=003a44d58f12089d0c0261338298af3813330949
matrix:
- DB=sqlite3 NODE_ENV=testing
- DB=mysql NODE_ENV=testing-mysql
- DB=pg NODE_ENV=testing-pg

View file

@ -1028,7 +1028,8 @@ var _ = require('lodash'),
var done = this.async(),
templatePath = 'core/client/templates/-contributors.hbs',
imagePath = 'core/client/assets/img/contributors/',
ninetyDaysAgo = Date.now() - (1000 * 60 * 60 * 24 * 90);
ninetyDaysAgo = Date.now() - (1000 * 60 * 60 * 24 * 90),
oauthKey = process.env.GITHUB_OAUTH_KEY;
if (fs.existsSync(templatePath) && !grunt.option('force')) {
grunt.log.writeln('Contributors template already exists.');
@ -1043,6 +1044,7 @@ var _ = require('lodash'),
getTopContribs({
user: 'tryghost',
repo: 'ghost',
oauthKey: oauthKey,
releaseDate: ninetyDaysAgo,
count: 20
})

View file

@ -101,6 +101,6 @@
"sinon": "~1.12.2",
"supertest": "~0.15.0",
"testem": "^0.6.23",
"top-gh-contribs": "0.0.4"
"top-gh-contribs": "0.0.5"
}
}