Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
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
link33
plugin
Commits
babba433
Commit
babba433
authored
Sep 25, 2019
by
kingwang
Committed by
33cn
Sep 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set test p=8
parent
90343d83
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Makefile
Makefile
+3
-3
coverage.sh
build/tools/coverage.sh
+1
-1
No files found.
Makefile
View file @
babba433
...
@@ -90,13 +90,13 @@ ineffassign:
...
@@ -90,13 +90,13 @@ ineffassign:
@
golangci-lint run
--no-config
--issues-exit-code
=
1
--deadline
=
2m
--disable-all
--enable
=
ineffassign
-n
${
PKG_LIST_INEFFASSIGN
}
@
golangci-lint run
--no-config
--issues-exit-code
=
1
--deadline
=
2m
--disable-all
--enable
=
ineffassign
-n
${
PKG_LIST_INEFFASSIGN
}
race
:
##
Run data race detector
race
:
##
Run data race detector
@
go
test
-race
-short
$(PKG_LIST)
@
go
test
-
parallel
=
8
-
race
-short
$(PKG_LIST)
test
:
##
Run unittests
test
:
##
Run unittests
@
go
test
-
race
$(PKG_LIST)
@
go
test
-
parallel
=
8
-race
$(PKG_LIST)
testq
:
##
Run unittests
testq
:
##
Run unittests
@
go
test
$(PKG_LIST)
@
go
test
-parallel
=
8
$(PKG_LIST)
fmt
:
fmt_proto fmt_shell
##
go fmt
fmt
:
fmt_proto fmt_shell
##
go fmt
@
go
fmt
./...
@
go
fmt
./...
...
...
build/tools/coverage.sh
View file @
babba433
...
@@ -12,7 +12,7 @@ mkdir -p "$COVERAGE_DIR"
...
@@ -12,7 +12,7 @@ mkdir -p "$COVERAGE_DIR"
# Create a coverage file for each package
# Create a coverage file for each package
for
package
in
${
PKG_LIST
}
;
do
for
package
in
${
PKG_LIST
}
;
do
go
test
-covermode
=
count
-coverprofile
"
${
COVERAGE_DIR
}
/
${
package
##*/
}
.cov"
"
$package
"
go
test
-
parallel
=
8
-
covermode
=
count
-coverprofile
"
${
COVERAGE_DIR
}
/
${
package
##*/
}
.cov"
"
$package
"
done
done
# Merge the coverage profile files
# Merge the coverage profile files
...
...
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