test(base-scenario): creates nixt testing base
This commit is contained in:
parent
9a3d9a9280
commit
4d58af7145
@ -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",
|
||||
|
@ -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
13
test/lib/base-scenario.js
Normal 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()
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user