Skip to content
Snippets Groups Projects
Commit 856a2573 authored by Sandro Weber's avatar Sandro Weber Committed by BBP code review
Browse files

Merge "[NoStory] fixing the CI (missed build/gz3d.js -.-)"

parents ab61104d 7a359c22
No related branches found
No related tags found
No related merge requests found
...@@ -92,6 +92,14 @@ module.exports = function(grunt) { ...@@ -92,6 +92,14 @@ module.exports = function(grunt) {
files: { files: {
src: ['package.json', '../../bower.json'] src: ['package.json', '../../bower.json']
} }
},
dist: {
options: {
force: true
},
files: {
src: ['../build/gz3d.js']
}
} }
}, },
...@@ -104,6 +112,14 @@ module.exports = function(grunt) { ...@@ -104,6 +112,14 @@ module.exports = function(grunt) {
files: { files: {
src: ['package.json', '../../bower.json'] src: ['package.json', '../../bower.json']
} }
},
dist: {
options: {
ignoreEmpty: true,
},
files: {
src: ['../build/gz3d.js']
}
} }
}, },
...@@ -124,6 +140,13 @@ module.exports = function(grunt) { ...@@ -124,6 +140,13 @@ module.exports = function(grunt) {
branch: 'HEAD:<%= gerritBranch %>', branch: 'HEAD:<%= gerritBranch %>',
tags: true tags: true
} }
},
dist: {
options: {
verbose: true, // for debug purpose
remote: 'origin',
branch: 'HEAD:<%= gerritBranch %>'
}
} }
}, },
...@@ -143,15 +166,17 @@ module.exports = function(grunt) { ...@@ -143,15 +166,17 @@ module.exports = function(grunt) {
grunt.registerTask('doc', ['clean', 'jsdoc']); grunt.registerTask('doc', ['clean', 'jsdoc']);
grunt.registerTask('ci', 'Run all the build steps on the CI server', function(target) { grunt.registerTask('ci', 'Run all the build steps on the CI server', function(target) {
var tasks = ['concat', 'jshint', 'uglify']; var tasks = ['concat', 'jshint', 'uglify', 'gitadd:dist', 'gitcommit:dist', 'gitpush:dist'];
var branch = this.options().gerritBranch; var branch = this.options().gerritBranch;
grunt.log.writeln('[grunt ci:' + target + '] GERRIT_BRANCH is: ' + branch); grunt.log.writeln('[grunt ci:' + target + '] GERRIT_BRANCH is: ' + branch);
if (target === 'patch' || target === 'minor' || target === 'major') { if (target === 'patch' || target === 'minor' || target === 'major') {
// commit bumped version numbers
tasks.unshift('bump:' + target); tasks.unshift('bump:' + target);
tasks.push('gitadd:bump'); tasks.push('gitadd:bump');
tasks.push('gitcommit:bump'); tasks.push('gitcommit:bump');
tasks.push('gitpush:bump'); tasks.push('gitpush:bump');
// commit git tag
tasks.push('gittag:dist'); tasks.push('gittag:dist');
tasks.push('gitpush:bump'); tasks.push('gitpush:bump');
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment