Comparing version 2.11.7 to 2.11.8
@@ -57,2 +57,5 @@ var TRAVIS_JOB_ID = process.env.TRAVIS_JOB_ID || 'unknown'; | ||
} | ||
if (options.parallel) { | ||
postJson.parallel = options.parallel; | ||
} | ||
if (options.service_pull_request) { | ||
@@ -59,0 +62,0 @@ postJson.service_pull_request = options.service_pull_request; |
@@ -93,2 +93,6 @@ var fs = require('fs'); | ||
if (process.env.COVERALLS_PARALLEL) { | ||
options.parallel = true; | ||
} | ||
// try to get the repo token as an environment variable | ||
@@ -95,0 +99,0 @@ if (process.env.COVERALLS_REPO_TOKEN) { |
@@ -8,3 +8,3 @@ { | ||
], | ||
"version": "2.11.7", | ||
"version": "2.11.8", | ||
"bugs": { | ||
@@ -11,0 +11,0 @@ "url": "https://github.com/nickmerwin/node-coveralls/issues" |
@@ -7,3 +7,3 @@ #node-coveralls | ||
Supported CI services: [travis-ci](https://travis-ci.org/), [codeship](https://www.codeship.io/), [circleci](https://circleci.com/), [jenkins](http://jenkins-ci.org/) | ||
Supported CI services: [travis-ci](https://travis-ci.org/), [codeship](https://www.codeship.io/), [circleci](https://circleci.com/), [jenkins](http://jenkins-ci.org/), [Gitlab CI](http://gitlab.com/) | ||
@@ -35,2 +35,3 @@ ##Installation: | ||
build system's date/time if you don't set it.) | ||
* COVERALLS_PARALLEL (more info here: https://coveralls.zendesk.com/hc/en-us/articles/203484329) | ||
@@ -37,0 +38,0 @@ ### [Mocha](http://mochajs.org/) + [Blanket.js](https://github.com/alex-seville/blanket) |
@@ -33,3 +33,4 @@ var convertLcovToCoveralls = require('../index').convertLcovToCoveralls; | ||
process.env.CI_PULL_REQUEST = "https://github.com/fake/fake/pulls/123"; | ||
process.env.COVERALLS_PARALLEL = "true"; | ||
getOptions(function(err, options){ | ||
@@ -43,2 +44,3 @@ var lcovpath = __dirname + "/../fixtures/onefile.lcov"; | ||
output.service_pull_request.should.equal("123"); | ||
output.parallel.should.equal(true); | ||
//output.git.should.equal("GIT_HASH"); | ||
@@ -45,0 +47,0 @@ done(); |
@@ -115,2 +115,5 @@ var should = require('should'); | ||
}); | ||
it ("should set paralell if env var set", function(done){ | ||
testParallel(getOptions, done); | ||
}); | ||
it ("should set service_name if it exists", function(done){ | ||
@@ -227,2 +230,10 @@ testServiceName(getOptions, done); | ||
var testParallel = function(sut, done){ | ||
process.env.COVERALLS_PARALLEL = "true"; | ||
sut(function(err, options){ | ||
options.parallel.should.equal(true); | ||
done(); | ||
}); | ||
}; | ||
var testRepoTokenDetection = function(sut, done) { | ||
@@ -229,0 +240,0 @@ var fs = require('fs'); |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
62363
1498
156
119