test(base-scenario): creates nixt testing base

This commit is contained in:
Stephan Bönnemann 2015-07-09 01:37:47 +02:00
parent 9a3d9a9280
commit 4d58af7145
3 changed files with 15 additions and 1 deletions

View File

@ -27,6 +27,7 @@
"babel": "^5.5.8",
"coveralls": "^2.11.2",
"mkdirp": "^0.5.1",
"nixt": "^0.4.1",
"nock": "^2.5.0",
"nyc": "^2.3.0",
"npm-registry-couchapp": "^2.6.11",

View File

@ -26,7 +26,7 @@ module.exports = function (pkg, options, env) {
))
}
if (!env.NPM_TOKEN) {
if (!(env.NPM_TOKEN || (env.NPM_OLD_TOKEN && env.NPM_EMAIL))) {
errors.push(new SemanticReleaseError(
'No npm token specified.',
'ENONPMTOKEN'

13
test/lib/base-scenario.js Normal file
View File

@ -0,0 +1,13 @@
const nixt = require('nixt')
module.exports = function (cwd, uri) {
return nixt()
.cwd(cwd)
.env('NPM_OLD_TOKEN', 'aW50ZWdyYXRpb246c3VjaHNlY3VyZQ==')
.env('NPM_EMAIL', 'integration@test.com')
.env('GH_TOKEN', 'ghtoken')
.env('CI', true)
.env('npm_config_registry', uri)
.env('npm_config_loglevel', 'info')
.clone()
}