grunt-build-control
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "grunt-build-control", | ||
"description": "Automate version control tasks for your project's built code. Keep built code in sync with source code, maintain multiple branches of built code, commit with automatic messages, and push to remote repositories.", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/robwierzbowski/grunt-build-control", | ||
@@ -6,0 +6,0 @@ "author": "Rob Wierzbowski <hello@robwierzbowski.com> (http://robwierzbowski)", |
@@ -64,2 +64,3 @@ # grunt-build-control | ||
Type: `String` | ||
Values: `URL|RemoteName|FileSystemPath` | ||
Default: `../` | ||
@@ -71,3 +72,3 @@ | ||
#### remoteBranch | ||
Type: `String` | ||
Type: `String` | ||
Default: `''` | ||
@@ -80,3 +81,3 @@ | ||
#### login | ||
Type: `String` | ||
Type: `String` | ||
Default: `''` | ||
@@ -90,3 +91,3 @@ | ||
#### token | ||
Type: `String` | ||
Type: `String` | ||
Default: `''` | ||
@@ -93,0 +94,0 @@ |
@@ -203,3 +203,3 @@ /* | ||
// `--update-head-ok` allows fetch on a branch with uncommited changes | ||
execWrap('git fetch --verbose --update-head-ok ' + remoteName + ' ' + options.branch + ':' + options.branch); | ||
execWrap('git fetch --progress --verbose --update-head-ok ' + remoteName + ' ' + options.branch + ':' + options.branch, false, true); | ||
} | ||
@@ -219,3 +219,4 @@ | ||
function gitFetch () { | ||
execWrap('git fetch ' + remoteName, false); | ||
log.subhead('Fetching ' + options.branch + ' history from ' + options.remote + '.'); | ||
execWrap('git fetch --progress --verbose ' + remoteName, false, true); | ||
} | ||
@@ -222,0 +223,0 @@ |
@@ -521,2 +521,30 @@ /*jshint -W030 */ | ||
}); | ||
describe('deploy to named remote', function() { | ||
it('should have deployed to origin', function(done) { | ||
var tasks = []; | ||
tasks.push(function(next) { | ||
childProcess.exec('git init', {cwd: 'repo/dist'}, next); | ||
}); | ||
tasks.push(function(next) { | ||
childProcess.exec('git remote add origin ../../remote', {cwd: 'repo/dist'}, next); | ||
}); | ||
tasks.push(function(next) { | ||
execScenario(next); | ||
}); | ||
tasks.push(function(next) { | ||
childProcess.exec('git log --pretty=oneline --abbrev-commit --no-color', {cwd: 'validate'}, function(err, stdout) { | ||
stdout.should.have.string('new grunt-build commit'); | ||
next(); | ||
}); | ||
}); | ||
async.series(tasks, done); | ||
}); | ||
}); | ||
}); |
Sorry, the diff of this file is not supported yet
151642
105
1007
247