Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
caf96399
Commit
caf96399
authored
May 06, 2013
by
Dave Methvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make it easier to debug the release script.
parent
2406b5e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
release.js
build/release.js
+12
-4
No files found.
build/release.js
View file @
caf96399
...
@@ -106,10 +106,10 @@ function checkGitStatus( next ) {
...
@@ -106,10 +106,10 @@ function checkGitStatus( next ) {
die
(
"Branches don't match: Wanted "
+
branch
+
", got "
+
onBranch
);
die
(
"Branches don't match: Wanted "
+
branch
+
", got "
+
onBranch
);
}
}
if
(
/Changes to be committed/i
.
test
(
stdout
)
)
{
if
(
/Changes to be committed/i
.
test
(
stdout
)
)
{
die
(
"Please commit changed files before attemping to push a release."
);
die
IfReal
(
"Please commit changed files before attemping to push a release."
);
}
}
if
(
/Changes not staged for commit/i
.
test
(
stdout
)
)
{
if
(
/Changes not staged for commit/i
.
test
(
stdout
)
)
{
die
(
"Please stash files before attempting to push a release."
);
die
IfReal
(
"Please stash files before attempting to push a release."
);
}
}
next
();
next
();
});
});
...
@@ -166,7 +166,7 @@ function makeReleaseCopies( next ) {
...
@@ -166,7 +166,7 @@ function makeReleaseCopies( next ) {
function
setNextVersion
(
next
)
{
function
setNextVersion
(
next
)
{
updatePackageVersion
(
nextVersion
);
updatePackageVersion
(
nextVersion
);
git
(
[
"commit"
,
"-a"
,
"-m"
,
"Updating the source version to "
+
nextVersion
],
next
,
debug
);
git
(
[
"commit"
,
"-a"
,
"-m"
,
"Updating the source version to "
+
nextVersion
+
"✓™"
],
next
,
debug
);
}
}
function
uploadToCDN
(
next
)
{
function
uploadToCDN
(
next
)
{
...
@@ -226,7 +226,7 @@ function exec( cmd, args, fn, skip ) {
...
@@ -226,7 +226,7 @@ function exec( cmd, args, fn, skip ) {
fn
(
""
,
""
,
""
);
fn
(
""
,
""
,
""
);
}
else
{
}
else
{
console
.
log
(
cmd
+
" "
+
args
.
join
(
" "
)
);
console
.
log
(
cmd
+
" "
+
args
.
join
(
" "
)
);
child
.
execFile
(
cmd
,
args
,
{
env
:
process
.
env
},
child
.
execFile
(
cmd
,
args
,
{
env
:
process
.
env
},
function
(
err
,
stdout
,
stderr
)
{
function
(
err
,
stdout
,
stderr
)
{
if
(
err
)
{
if
(
err
)
{
die
(
stderr
||
stdout
||
err
);
die
(
stderr
||
stdout
||
err
);
...
@@ -242,6 +242,14 @@ function die( msg ) {
...
@@ -242,6 +242,14 @@ function die( msg ) {
process
.
exit
(
1
);
process
.
exit
(
1
);
}
}
function
dieIfReal
(
msg
)
{
if
(
debug
)
{
console
.
log
(
"DIE: "
+
msg
);
}
else
{
die
(
msg
);
}
}
function
exit
()
{
function
exit
()
{
process
.
exit
(
0
);
process
.
exit
(
0
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment