Skip to content

Commit

Permalink
Set default environment variables
Browse files Browse the repository at this point in the history
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 Strider-CD#892
  • Loading branch information
watson authored Nov 17, 2017
1 parent b7c2de6 commit ad0731f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/strider
Original file line number Diff line number Diff line change
@@ -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,
/*
Expand Down

0 comments on commit ad0731f

Please sign in to comment.