Merge branch 'master' of github.com:lightsofapollo/treeherder-node
This commit is contained in:
Коммит
943c31caee
|
@ -1,3 +1,7 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
language: node_js
|
||||
node_js:
|
||||
- '0.10'
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
module.exports = function(grunt) {
|
||||
var docFiles = [
|
||||
'README.md',
|
||||
|
@ -6,7 +10,7 @@ module.exports = function(grunt) {
|
|||
'factory/github.js'
|
||||
];
|
||||
|
||||
|
||||
|
||||
// Project configuration.
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# mozilla-treeherder [![Build Status](https://travis-ci.org/lightsofapollo/treeherder-node.png?branch=master)](https://travis-ci.org/lightsofapollo/treeherder-node)
|
||||
# mozilla-treeherder [![Build Status](https://travis-ci.org/mozilla/treeherder-node.png?branch=master)](https://travis-ci.org/mozilla/treeherder-node)
|
||||
|
||||
NodeJS interface for [treeherder](https://treeherder.mozilla.org).
|
||||
|
||||
|
@ -7,8 +7,8 @@ NodeJS interface for [treeherder](https://treeherder.mozilla.org).
|
|||
```js
|
||||
var Project = require('mozilla-treeherder/project');
|
||||
|
||||
// this configuration can be aquired from an ateam member working on
|
||||
// treeherder (jeads).
|
||||
// this configuration can be acquired from an ateam member working on
|
||||
// treeherder (mdoglio).
|
||||
var project = new Project('gaia', {
|
||||
consumerKey: '...',
|
||||
consumerSecret: '',
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
#! /usr/bin/env node
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, you can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
var Github = require('github');
|
||||
var program = require('commander');
|
||||
var URL = require('url');
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
/**
|
||||
Defaults for the treeherder service.
|
||||
*/
|
||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
// Defaults for the treeherder service
|
||||
module.exports = {
|
||||
baseUrl: process.env.TREEHERDER_URL ||
|
||||
'https://treeherder-dev.allizom.org/api/'
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/**
|
||||
@fileoverview
|
||||
|
||||
Github factory which will convert github results into treeherder compatible
|
||||
Github factory which will convert github results into treeherder compatible
|
||||
types.
|
||||
|
||||
@module mozilla-treeherder/factory/github
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
suite('github', function() {
|
||||
var REPO = 'gaia';
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/**
|
||||
@fileoverview
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
suite('github', function() {
|
||||
var nock = require('nock');
|
||||
var subject = require('./github');
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/**
|
||||
@fileoverview
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
suite('httperror', function() {
|
||||
var HttpError = require('./httperror');
|
||||
var fixture = require('./test/fixtures/error_body');
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/lightsofapollo/treeherder-node.git"
|
||||
"url": "git://github.com/mozilla/treeherder-node.git"
|
||||
},
|
||||
"keywords": [
|
||||
"mozilla",
|
||||
|
@ -24,9 +24,9 @@
|
|||
"author": "James Lal [:lightsofapollo]",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/lightsofapollo/treeherder-node/issues"
|
||||
"url": "https://github.com/mozilla/treeherder-node/issues"
|
||||
},
|
||||
"homepage": "https://github.com/lightsofapollo/treeherder-node",
|
||||
"homepage": "https://github.com/mozilla/treeherder-node",
|
||||
"devDependencies": {
|
||||
"mocha": "~1.18.1",
|
||||
"nock": "~0.27.2",
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
/**
|
||||
@module mozilla-treeherder/project
|
||||
*/
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
suite('project', function() {
|
||||
var PROJECT_NAME = 'gaia';
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
var nock = require('nock');
|
||||
|
||||
nock('https://api.github.com:443')
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, you can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
|
||||
global.assert = require('assert');
|
||||
|
||||
// Default url exported by the vagrant treeherder image.
|
||||
|
|
Загрузка…
Ссылка в новой задаче