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
dd4065ae
Commit
dd4065ae
authored
Oct 23, 2025
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gita: add test as alias for run --test-only, always use run with --test-only by default
parent
1de23d53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
gitask
bin/gitask
+8
-6
No files found.
bin/gitask
View file @
dd4065ae
...
...
@@ -341,12 +341,14 @@ if [ "$1" = "show" ] ; then
exit
fi
if
[
"
$1
"
=
"run"
]
||
[
"
$1
"
=
"commit"
]
;
then
COMMIT
=
''
[
"
$1
"
=
"commit"
]
&&
COMMIT
=
"--commit"
# run --commit, run --test-only, commit, test
if
[
"
$1
"
=
"run"
]
||
[
"
$1
"
=
"commit"
]
||
[
"
$1
"
=
"test"
]
;
then
VERB
=
"
$1
"
COMMAND
=
'--test-only'
[
"
$VERB
"
=
"commit"
]
&&
COMMAND
=
"--commit"
shift
TESTONLY
=
''
[
"
$
1
"
=
"--test-only"
]
&&
TESTONLY
=
"
$1
"
&&
shift
[
"
$1
"
=
"--test-only"
]
&&
shift
[
"
$
VERB
"
=
"run"
]
&&
[
"
$1
"
=
"--commit"
]
&&
COMMAND
=
"--commit
"
&&
shift
TASKLIST
=
''
MESSAGE
=
''
...
...
@@ -371,7 +373,7 @@ if [ "$1" = "run" ] || [ "$1" = "commit" ] ; then
[
-n
"
$TASKLIST
"
]
||
TASKLIST
=
"
$(
get_last
)
"
||
fatal
"Can't get last task"
for
TASK
in
$TASKLIST
;
do
echo
"
$MESSAGETEXT
"
| docmd ssh
$GEARHOST
task run
$
TESTONLY
$MESSAGE
$COMMIT
"
$TASK
"
echo
"
$MESSAGETEXT
"
| docmd ssh
$GEARHOST
task run
$
COMMAND
$MESSAGE
"
$TASK
"
done
exit
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