Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gzweb
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Neurorobotics Platform
gzweb
Commits
7a359c22
Commit
7a359c22
authored
9 years ago
by
Sandro Weber
Browse files
Options
Downloads
Patches
Plain Diff
[NoStory] fixing the CI (missed build/gz3d.js -.-)
Change-Id: Idce2c099d0b10d70123976913cb317df20798705
parent
a0903a8c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gz3d/utils/Gruntfile.js
+26
-1
26 additions, 1 deletion
gz3d/utils/Gruntfile.js
with
26 additions
and
1 deletion
gz3d/utils/Gruntfile.js
+
26
−
1
View file @
7a359c22
...
...
@@ -92,6 +92,14 @@ module.exports = function(grunt) {
files
:
{
src
:
[
'
package.json
'
,
'
../../bower.json
'
]
}
},
dist
:
{
options
:
{
force
:
true
},
files
:
{
src
:
[
'
../build/gz3d.js
'
]
}
}
},
...
...
@@ -104,6 +112,14 @@ module.exports = function(grunt) {
files
:
{
src
:
[
'
package.json
'
,
'
../../bower.json
'
]
}
},
dist
:
{
options
:
{
ignoreEmpty
:
true
,
},
files
:
{
src
:
[
'
../build/gz3d.js
'
]
}
}
},
...
...
@@ -124,6 +140,13 @@ module.exports = function(grunt) {
branch
:
'
HEAD:<%= gerritBranch %>
'
,
tags
:
true
}
},
dist
:
{
options
:
{
verbose
:
true
,
// for debug purpose
remote
:
'
origin
'
,
branch
:
'
HEAD:<%= gerritBranch %>
'
}
}
},
...
...
@@ -143,15 +166,17 @@ module.exports = function(grunt) {
grunt
.
registerTask
(
'
doc
'
,
[
'
clean
'
,
'
jsdoc
'
]);
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
;
grunt
.
log
.
writeln
(
'
[grunt ci:
'
+
target
+
'
] GERRIT_BRANCH is:
'
+
branch
);
if
(
target
===
'
patch
'
||
target
===
'
minor
'
||
target
===
'
major
'
)
{
// commit bumped version numbers
tasks
.
unshift
(
'
bump:
'
+
target
);
tasks
.
push
(
'
gitadd:bump
'
);
tasks
.
push
(
'
gitcommit:bump
'
);
tasks
.
push
(
'
gitpush:bump
'
);
// commit git tag
tasks
.
push
(
'
gittag:dist
'
);
tasks
.
push
(
'
gitpush:bump
'
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment