Travis CI: Upgrade to Node.js v6 (#386)

Also adjust Commander initialization to explicitly name our command,
which prevents a crash within commander within our CLI unit tests under Node.js 6.
This commit is contained in:
Chris Rebert 2016-07-23 15:53:37 -07:00 коммит произвёл GitHub
Родитель bcad9b7cc4
Коммит 4d65f5ddb1
2 изменённых файлов: 3 добавлений и 3 удалений

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

@ -1,7 +1,7 @@
{
"sudo": false,
"language": "node_js",
"node_js": ["5"],
"node_js": ["6"],
"before_install": [
"travis_retry pip install -r test-infra/requirements.txt --user",
"rvm install 2.2",

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

@ -4,13 +4,13 @@
var Deferred = require('bluebird');
var chalk = require('chalk');
var program = require('commander');
var commander = require('commander');
var readFile = Deferred.promisify(require('fs').readFile);
var glob = Deferred.promisify(require('glob'));
var bootlint = require('./bootlint');
module.exports = function () {
program
var program = (new commander.Command('bootlint'))
.version(require('../package.json').version)
.description('Lint the HTML of Bootstrap projects')
.usage('[options] [files...]')