Comparing version 0.6.9 to 0.6.10
@@ -5,2 +5,6 @@ ### master | ||
### 0.6.10 | ||
* Brings back the ability to emulate a fake CI run locally via `danger` - orta | ||
### 0.6.9 | ||
@@ -7,0 +11,0 @@ |
@@ -23,2 +23,6 @@ "use strict"; | ||
var _Fake = require("./Fake"); | ||
var _Fake2 = _interopRequireDefault(_Fake); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -32,5 +36,2 @@ | ||
*/ | ||
/** The shape of an object that represents an individual CI */ | ||
function getCISourceForEnv(env) { | ||
@@ -40,2 +41,3 @@ var travis = new _Travis2.default(env); | ||
var semaphore = new _Semaphore2.default(env); | ||
var fake = new _Fake2.default(env); | ||
@@ -46,6 +48,10 @@ if (travis.isCI) { | ||
return circle; | ||
}if (semaphore.isCI) { | ||
} else if (semaphore.isCI) { | ||
return semaphore; | ||
} else if (fake.isCI) { | ||
return fake; | ||
} | ||
} | ||
/** The shape of an object that represents an individual CI */ | ||
//# sourceMappingURL=ci_source.js.map |
@@ -11,2 +11,4 @@ "use strict"; | ||
var _ci_source_helpers = require("./ci_source_helpers"); | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } | ||
@@ -34,3 +36,3 @@ | ||
get: function get() { | ||
return true; | ||
return (0, _ci_source_helpers.ensureEnvKeysExist)(this.env, ["DANGER_FAKE_CI"]); | ||
} | ||
@@ -37,0 +39,0 @@ }, { |
{ | ||
"name": "danger", | ||
"version": "0.6.9", | ||
"version": "0.6.10", | ||
"description": "Unit tests for Team Culture", | ||
@@ -5,0 +5,0 @@ "main": "distribution/danger.js", |
@@ -60,2 +60,3 @@ Danger on Node, wonder what's going on? see [VISION.md](VISION.md) | ||
```bash | ||
export DANGER_FAKE_CI="YEP" | ||
export DANGER_GITHUB_API_TOKEN='xxxxxxxxxx' # a github api token | ||
@@ -62,0 +63,0 @@ export DANGER_TEST_REPO='username/reponame' |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
425654
109
5646
119