Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
1dc4aa5b
You need to sign in or sign up before continuing.
Commit
1dc4aa5b
authored
Nov 08, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gitask: allow --test-only for run
parent
a6cbee1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
gitask
bin/gitask
+5
-3
No files found.
bin/gitask
View file @
1dc4aa5b
...
@@ -19,8 +19,8 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
...
@@ -19,8 +19,8 @@ if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
echo
"Examples:"
echo
"Examples:"
echo
" ls [-a|--all] - list tasks (--all for all users)"
echo
" ls [-a|--all] - list tasks (--all for all users)"
echo
" new [branch] - create new task on branch (Sisyphus by default)"
echo
" new [branch] - create new task on branch (Sisyphus by default)"
echo
" run
[-m <message>] [NNNN]
- run task NNNN"
echo
" run
[--test-only] [NNNN] [NNNN2] [-m <message>]
- run task NNNN"
echo
" commit [
-m <message>] [NNNN] [NNNN2
] - commit task(s) NNNN, [NNNN2]"
echo
" commit [
NNNN] [NNNN2] [-m <message>
] - commit task(s) NNNN, [NNNN2]"
echo
" add del package [package2] - add package remove command"
echo
" add del package [package2] - add package remove command"
echo
" add rebuild package [package2] - add package rebuild"
echo
" add rebuild package [package2] - add package rebuild"
echo
" add --help - show task add help"
echo
" add --help - show task add help"
...
@@ -258,6 +258,8 @@ if [ "$1" = "run" ] || [ "$1" = "commit" ] ; then
...
@@ -258,6 +258,8 @@ if [ "$1" = "run" ] || [ "$1" = "commit" ] ; then
COMMIT
=
''
COMMIT
=
''
[
"
$1
"
=
"commit"
]
&&
COMMIT
=
"--commit"
[
"
$1
"
=
"commit"
]
&&
COMMIT
=
"--commit"
shift
shift
TESTONLY
=
''
[
"
$1
"
=
"--test-only"
]
&&
TESTONLY
=
"
$1
"
&&
shift
TASKLIST
=
''
TASKLIST
=
''
MESSAGE
=
''
MESSAGE
=
''
...
@@ -282,7 +284,7 @@ if [ "$1" = "run" ] || [ "$1" = "commit" ] ; then
...
@@ -282,7 +284,7 @@ if [ "$1" = "run" ] || [ "$1" = "commit" ] ; then
[
-n
"
$TASKLIST
"
]
||
TASKLIST
=
"
$(
get_last
)
"
||
fatal
"Can't get last task"
[
-n
"
$TASKLIST
"
]
||
TASKLIST
=
"
$(
get_last
)
"
||
fatal
"Can't get last task"
for
TASK
in
$TASKLIST
;
do
for
TASK
in
$TASKLIST
;
do
echo
"
$MESSAGETEXT
"
| docmd ssh
$GEARHOST
task run
$MESSAGE
$COMMIT
"
$TASK
"
echo
"
$MESSAGETEXT
"
| docmd ssh
$GEARHOST
task run
$
TESTONLY
$
MESSAGE
$COMMIT
"
$TASK
"
done
done
exit
exit
fi
fi
...
...
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