Skip to content

Commit

Permalink
Adds SNYK_CI variable to the list of detected variables
Browse files Browse the repository at this point in the history
This allows CI systems that are currently unsupported to
register the environment variable. Prefixed with `SNYK_`
to avoid collision with any existing variables in the build
pipeline.
  • Loading branch information
jessehouwing authored and Anton Drukh committed Nov 20, 2016
1 parent cb89d3d commit 3d08cd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/is-ci.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
var ciEnvs = [
'SNYK_CI',
'CI',
'CONTINUOUS_INTEGRATION',
'BUILD_ID',
Expand All @@ -12,7 +13,7 @@ var ciEnvs = [
'PHPCI',
'GOCD_SERVER_HOST',
'BUILDKITE',
'TF_BUILD'
'TF_BUILD',
];

module.exports = !!Object.keys(process.env).filter(function (env) {
Expand Down

0 comments on commit 3d08cd4

Please sign in to comment.