Comparing version 2.1.3 to 2.2.0
@@ -12,2 +12,3 @@ 'use strict'; | ||
circleci: require('./lib/circleci'), | ||
cirrus: require('./lib/cirrus'), | ||
codebuild: require('./lib/codebuild'), | ||
@@ -22,2 +23,3 @@ codeship: require('./lib/codeship'), | ||
travis: require('./lib/travis'), | ||
vsts: require('./lib/vsts'), | ||
wercker: require('./lib/wercker'), | ||
@@ -24,0 +26,0 @@ }; |
@@ -16,3 +16,3 @@ // http://devcenter.bitrise.io/faq/available-environment-variables | ||
pr: process.env.BITRISE_PULL_REQUEST === 'false' ? undefined : process.env.BITRISE_PULL_REQUEST, | ||
isPr: process.env.BITRISE_PULL_REQUEST && process.env.BITRISE_PULL_REQUEST !== 'false', | ||
isPr: Boolean(process.env.BITRISE_PULL_REQUEST && process.env.BITRISE_PULL_REQUEST !== 'false'), | ||
slug: process.env.BITRISE_APP_SLUG, | ||
@@ -19,0 +19,0 @@ }; |
@@ -17,3 +17,3 @@ // https://buildkite.com/docs/builds/environment-variables | ||
pr: process.env.BUILDKITE_PULL_REQUEST === 'false' ? undefined : process.env.BUILDKITE_PULL_REQUEST, | ||
isPr: process.env.BUILDKITE_PULL_REQUEST && process.env.BUILDKITE_PULL_REQUEST !== 'false', | ||
isPr: Boolean(process.env.BUILDKITE_PULL_REQUEST && process.env.BUILDKITE_PULL_REQUEST !== 'false'), | ||
root: process.env.BUILDKITE_BUILD_CHECKOUT_PATH, | ||
@@ -20,0 +20,0 @@ }; |
@@ -17,3 +17,3 @@ const git = require('./git'); | ||
pr: process.env.PULL_REQUEST_NUMBER, | ||
isPr: Boolean(process.env.PULL_REQUEST_NUMBER), | ||
isPr: Boolean(process.env.PULL_REQUEST_NUMBER && process.env.PULL_REQUEST_NUMBER !== 'false'), | ||
slug: process.env.SEMAPHORE_REPO_SLUG, | ||
@@ -20,0 +20,0 @@ root: process.env.SEMAPHORE_PROJECT_DIR, |
@@ -17,3 +17,3 @@ // http://docs.shippable.com/ci/env-vars/#stdEnv | ||
pr: process.env.PULL_REQUEST === 'false' ? undefined : process.env.PULL_REQUEST, | ||
isPr: process.env.IS_PULL_REQUEST && process.env.IS_PULL_REQUEST === 'true', | ||
isPr: Boolean(process.env.IS_PULL_REQUEST && process.env.IS_PULL_REQUEST === 'true'), | ||
slug: process.env.SHIPPABLE_REPO_SLUG, | ||
@@ -20,0 +20,0 @@ root: process.env.SHIPPABLE_BUILD_DIR, |
@@ -16,3 +16,3 @@ // https://docs.travis-ci.com/user/environment-variables | ||
pr: process.env.TRAVIS_PULL_REQUEST === 'false' ? undefined : process.env.TRAVIS_PULL_REQUEST, | ||
isPr: process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false', | ||
isPr: Boolean(process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST !== 'false'), | ||
slug: process.env.TRAVIS_REPO_SLUG, | ||
@@ -19,0 +19,0 @@ root: process.env.TRAVIS_BUILD_DIR, |
{ | ||
"name": "env-ci", | ||
"description": "Get environment variables exposed by CI services", | ||
"version": "2.1.3", | ||
"version": "2.2.0", | ||
"author": "Pierre Vanduynslager (https://github.com/pvdlg)", | ||
@@ -33,2 +33,3 @@ "bugs": { | ||
"bamboo", | ||
"bitbucket", | ||
"bitrise", | ||
@@ -38,5 +39,8 @@ "buildkite", | ||
"circle", | ||
"cirrus", | ||
"codebuild", | ||
"codeship", | ||
"drone", | ||
"environment", | ||
"git", | ||
"gitlab", | ||
@@ -49,2 +53,3 @@ "jenkins", | ||
"variable", | ||
"vsts", | ||
"wercker" | ||
@@ -51,0 +56,0 @@ ], |
@@ -65,2 +65,3 @@ # env-ci | ||
| [CircleCI](https://circleci.com/docs/1.0/environment-variables) | `circleci` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ❌ | | ||
| [Cirrus CI](https://cirrus-ci.org/guide/writing-tasks/#environment-variables) | `cirrus` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | | ||
| [AWS CodeBuild](https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-env-vars.html) | `codebuild` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ | | ||
@@ -75,2 +76,3 @@ | [Codeship](https://documentation.codeship.com/basic/builds-and-configuration/set-environment-variables) | `codeship` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ❌ | | ||
| [Travis CI](https://docs.travis-ci.com/user/environment-variables) | `travis` | ✅ | ✅ | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ✅ | ✅ | ✅ | | ||
| [Visual Studio Team Services](https://docs.microsoft.com/en-us/vsts/pipelines/build/variables) | `vsts` | ✅ | ✅ | ✅ | ❌ | ✅ | ❌ | ❌ | ✅ | ✅ | ❌ | ✅ | | ||
| [Wercker](http://devcenter.wercker.com/docs/environment-variables/available-env-vars#hs_cos_wrapper_name) | `wercker` | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ | | ||
@@ -77,0 +79,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24924
23
441
93
33