Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
quant
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
quant
Commits
aa464cb0
Commit
aa464cb0
authored
1 year ago
by
Neil-Jocelyn Schark
Browse files
Options
Downloads
Patches
Plain Diff
test unit-tests
parent
9b8a3d09
No related branches found
No related tags found
3 merge requests
!71
Draft: Resolve "Create DB connection instead of using memory only"
,
!66
Resolve "Enable TLS between KMS"
,
!49
Improve general project repo (Tests, etc.)
Pipeline
#186732
failed
1 year ago
Stage: build
Stage: test
Stage: analyze
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+18
-0
18 additions, 0 deletions
.gitlab-ci.yml
Makefile
+1
-2
1 addition, 2 deletions
Makefile
with
19 additions
and
2 deletions
.gitlab-ci.yml
+
18
−
0
View file @
aa464cb0
...
@@ -63,6 +63,24 @@ code-vulnerability:
...
@@ -63,6 +63,24 @@ code-vulnerability:
-
govulncheck ./...
-
govulncheck ./...
needs
:
[]
needs
:
[]
unit-tests
:
image
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golang:$GOLANG_VERSION
stage
:
test
before_script
:
-
apt update && apt install -y make
script
:
-
make test
-
go tool cover -func=coverage.out
-
gocover-cobertura < coverage.out > coverage.xml
artifacts
:
expire_in
:
1 week
when
:
always
reports
:
junit
:
report.xml
coverage_report
:
coverage_format
:
cobertura
path
:
coverage.xml
needs
:
[]
integration-test-kms
:
integration-test-kms
:
image
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golang:$GOLANG_VERSION-bookworm
image
:
${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/golang:$GOLANG_VERSION-bookworm
...
...
This diff is collapsed.
Click to expand it.
Makefile
+
1
−
2
View file @
aa464cb0
...
@@ -39,8 +39,7 @@ lint-fix: install-tools
...
@@ -39,8 +39,7 @@ lint-fix: install-tools
./
$(
TOOLS_DIR
)
/golangci-lint run
--config
.golangci.yml
--fix
| jq
./
$(
TOOLS_DIR
)
/golangci-lint run
--config
.golangci.yml
--fix
| jq
test
:
test
:
go
test
-v
./ekms/...
go
test
-coverprofile
=
coverage.out
-v
./ekms/... ./quantumlayer/...
go
test
-v
./quantumlayer/...
build-ekms
:
pre
build-ekms
:
pre
CGO_ENABLED
=
0
$(
GOBUILD
)
-o
$(
BUILD_ARTIFACTS_PATH
)
/ekms ./ekms/main.go
CGO_ENABLED
=
0
$(
GOBUILD
)
-o
$(
BUILD_ARTIFACTS_PATH
)
/ekms ./ekms/main.go
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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