lib/coopt.js
function genEnvOptions(commitMsg) {
	return {
		pluginName : globalOpts.pluginName,
		pluginDesc : globalOpts.pluginDesc,
		pkgPath : 'package.json',
		pkgPathBower : 'bower.json',
		pkgPropSync : [ 'name', 'version', 'repository' ],
		gitCliSubstitute : '',
		buildDir : process.env.TRAVIS_BUILD_DIR || process.cwd(),
		branch : process.env.TRAVIS_BRANCH,
		commitHash : process.env.TRAVIS_COMMIT,
		commitMessage : commitMsg || process.env.TRAVIS_COMMIT_MESSAGE,
		repoSlug : process.env.TRAVIS_REPO_SLUG,
		releaseVersionDefaultLabel : 'release',
		releaseVersionDefaultType : 'v',
		releaseVersionRegExp : globalOpts.regexRelease,
		releaseVersionSemverIncRegExp : globalOpts.regexReleaseSemverInc,
		bumpVersionDefaultLabel : 'bump',
		bumpVersionDefaultType : 'v',
		bumpVersionRegExp : globalOpts.regexBump,
		bumpVersionSemverIncRegExp : globalOpts.regexBumpSemverInc,
		prevVersionMsgIgnoreRegExp : /No names found/i,
		gitToken : process.env.GH_TOKEN,
		npmToken : process.env.NPM_TOKEN
	};
}
function genEnvOptions(commitMsg) {
	return {
		pluginName : globalOpts.pluginName,
		pluginDesc : globalOpts.pluginDesc,
		pkgPath : 'package.json',
		pkgPathBower : 'bower.json',
		pkgPropSync : [ 'name', 'version', 'repository' ],
		gitCliSubstitute : '',
		buildDir : process.env.TRAVIS_BUILD_DIR || process.cwd(),
		branch : process.env.TRAVIS_BRANCH,
		commitHash : process.env.TRAVIS_COMMIT,
		commitMessage : commitMsg || process.env.TRAVIS_COMMIT_MESSAGE,
		repoSlug : process.env.TRAVIS_REPO_SLUG,
		releaseVersionDefaultLabel : 'release',
		releaseVersionDefaultType : 'v',
		releaseVersionRegExp : globalOpts.regexRelease,
		releaseVersionSemverIncRegExp : globalOpts.regexReleaseSemverInc,
		bumpVersionDefaultLabel : 'bump',
		bumpVersionDefaultType : 'v',
		bumpVersionRegExp : globalOpts.regexBump,
		bumpVersionSemverIncRegExp : globalOpts.regexBumpSemverInc,
		prevVersionMsgIgnoreRegExp : /No names found/i,
		gitToken : process.env.GH_TOKEN,
		npmToken : process.env.NPM_TOKEN
	};
}
function genEnvOptions ( commitMsg ) { return { pluginName : globalOpts . pluginName , pluginDesc : globalOpts . pluginDesc , pkgPath : 'package.json' , pkgPathBower : 'bower.json' , pkgPropSync : [ 'name' , 'version' , 'repository' ] , gitCliSubstitute : '' , buildDir : process . env . TRAVIS_BUILD_DIR || process . cwd ( ) , branch : process . env . TRAVIS_BRANCH , commitHash : process . env . TRAVIS_COMMIT , commitMessage : commitMsg || process . env . TRAVIS_COMMIT_MESSAGE , repoSlug : process . env . TRAVIS_REPO_SLUG , releaseVersionDefaultLabel : 'release' , releaseVersionDefaultType : 'v' , releaseVersionRegExp : globalOpts . regexRelease , releaseVersionSemverIncRegExp : globalOpts . regexReleaseSemverInc , bumpVersionDefaultLabel : 'bump' , bumpVersionDefaultType : 'v' , bumpVersionRegExp : globalOpts . regexBump , bumpVersionSemverIncRegExp : globalOpts . regexBumpSemverInc , prevVersionMsgIgnoreRegExp : / No names found / i , gitToken : process . env . GH_TOKEN , npmToken : process . env . NPM_TOKEN } ; }
Generates environment options for a commit

@param commitMsg
the commit message (optional)
@returns {___anonymous1480_2103}
Generates environment options for a commit