From ad0731f0f8c155b8a863edc712fdef5e18c9d657 Mon Sep 17 00:00:00 2001 From: Thomas Watson Date: Fri, 17 Nov 2017 10:00:40 +0100 Subject: [PATCH] Set default environment variables This allows code being run by the CI server to detect that it's running inside a CI server. The `CI` environment variable is exposed by most major CI servers, but having a vendor specific environment variable (i.e. `STRIDER`) is also common practice. For details see issue #892 --- bin/strider | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/strider b/bin/strider index edf32d590..ea2ebae0a 100755 --- a/bin/strider +++ b/bin/strider @@ -1,6 +1,9 @@ #!/usr/bin/env node 'use strict'; +process.env.CI = 'true' +process.env.STRIDER = 'true' + var cli = require('strider-cli')({ version: require('../package.json').version, /*