UNPKG

@modea/modea-increment-version

Version:

Increments version and build numbers in specified files

32 lines (29 loc) 1.18 kB
var assert = require('assert'); const gitManip = require('../src/increment/git/gitManipulation'); describe('No tests yet', function() { it('Git commands run correctly', function() { const configuration = { branchName: 'release/v{{VERSION_CODE}}-{{BUILD_NUMBER}}', pr: { createUrl: 'https://api.bitbucket.org/2.0/repositories/$BITBUCKET_REPO_OWNER/$BITBUCKET_REPO_SLUG/pullrequests', mergeUrl: 'https://api.bitbucket.org/2.0/repositories/$BITBUCKET_REPO_OWNER/$BITBUCKET_REPO_SLUG/pullrequests/$PR_ID/merge', branches: [ { name: 'development', mergeStrategy: 'squash' }, { name: 'master', mergeStrategy: 'squash' } ] }, user: { name: 'modea-integrator', password: '$MODEA_INTEGRATOR_SECRET' } } // gitManip.pushChangesToGit(configuration, "Commit message!") assert.equal([1, 2, 3].indexOf(4), -1); }); });