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:
commit
33ce828a4a
3 changed files with 10 additions and 5 deletions
|
@ -9,6 +9,9 @@ cache:
|
||||||
addons:
|
addons:
|
||||||
postgresql: "9.3"
|
postgresql: "9.3"
|
||||||
env:
|
env:
|
||||||
|
global:
|
||||||
|
- GITHUB_OAUTH_KEY=003a44d58f12089d0c0261338298af3813330949
|
||||||
|
matrix:
|
||||||
- DB=sqlite3 NODE_ENV=testing
|
- DB=sqlite3 NODE_ENV=testing
|
||||||
- DB=mysql NODE_ENV=testing-mysql
|
- DB=mysql NODE_ENV=testing-mysql
|
||||||
- DB=pg NODE_ENV=testing-pg
|
- DB=pg NODE_ENV=testing-pg
|
||||||
|
|
|
@ -1028,7 +1028,8 @@ var _ = require('lodash'),
|
||||||
var done = this.async(),
|
var done = this.async(),
|
||||||
templatePath = 'core/client/templates/-contributors.hbs',
|
templatePath = 'core/client/templates/-contributors.hbs',
|
||||||
imagePath = 'core/client/assets/img/contributors/',
|
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')) {
|
if (fs.existsSync(templatePath) && !grunt.option('force')) {
|
||||||
grunt.log.writeln('Contributors template already exists.');
|
grunt.log.writeln('Contributors template already exists.');
|
||||||
|
@ -1043,6 +1044,7 @@ var _ = require('lodash'),
|
||||||
getTopContribs({
|
getTopContribs({
|
||||||
user: 'tryghost',
|
user: 'tryghost',
|
||||||
repo: 'ghost',
|
repo: 'ghost',
|
||||||
|
oauthKey: oauthKey,
|
||||||
releaseDate: ninetyDaysAgo,
|
releaseDate: ninetyDaysAgo,
|
||||||
count: 20
|
count: 20
|
||||||
})
|
})
|
||||||
|
|
|
@ -101,6 +101,6 @@
|
||||||
"sinon": "~1.12.2",
|
"sinon": "~1.12.2",
|
||||||
"supertest": "~0.15.0",
|
"supertest": "~0.15.0",
|
||||||
"testem": "^0.6.23",
|
"testem": "^0.6.23",
|
||||||
"top-gh-contribs": "0.0.4"
|
"top-gh-contribs": "0.0.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue