Merge branch 'master' of github.com:lightsofapollo/treeherder-node

This commit is contained in:
James Lal 2015-01-23 11:45:52 -08:00
Родитель 2c78ab386d 83850072b8
Коммит 943c31caee
16 изменённых файлов: 65 добавлений и 11 удалений

Просмотреть файл

@ -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.