Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
goSDN
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
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
Terraform modules
Analyze
Contributor analytics
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
goSDN
Commits
a65b7f2a
Commit
a65b7f2a
authored
4 years ago
by
Manuel Kieweg
Browse files
Options
Downloads
Patches
Plain Diff
integration test for mr, develop, and master only
parent
b235148c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!113
increased test coverage
,
!90
Develop
Pipeline
#66662
passed with warnings
4 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
build/ci/.terraform-ci.yml
+1
-0
1 addition, 0 deletions
build/ci/.terraform-ci.yml
build/ci/.test.yml
+10
-1
10 additions, 1 deletion
build/ci/.test.yml
with
11 additions
and
1 deletion
build/ci/.terraform-ci.yml
+
1
−
0
View file @
a65b7f2a
...
...
@@ -28,6 +28,7 @@ cache:
variables
:
TF_VAR_container_tag
:
$CI_REGISTRY_IMAGE:mr-develop
-
if
:
$CI_COMMIT_BRANCH == "integration-test"
-
if
:
$CI_COMMIT_BRANCH == "develop"
-
if
:
$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
init
:
...
...
This diff is collapsed.
Click to expand it.
build/ci/.test.yml
+
10
−
1
View file @
a65b7f2a
...
...
@@ -11,13 +11,22 @@ integration-test:
after_script
:
-
go tool cover -func=coverage.out
unit-test-merge-request
:
image
:
golang:1.14
stage
:
test
allow_failure
:
true
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
script
:
-
go test -race $(go list ./... | grep -v /forks/ | grep -v /api/ | grep -v /mocks ) -v -coverprofile=coverage.out
after_script
:
-
go tool cover -func=coverage.out
unit-test
:
image
:
golang:1.14
stage
:
test
allow_failure
:
true
rules
:
-
if
:
$CI_PIPELINE_SOURCE == "merge_request_event" && $CI_MERGE_REQUEST_TARGET_BRANCH_NAME != $CI_DEFAULT_BRANCH
-
if
:
$CI_COMMIT_BRANCH != $CI_DEFAULT_BRANCH
script
:
-
go test -short -race $(go list ./... | grep -v /forks/ | grep -v /api/ | grep -v /mocks ) -v -coverprofile=coverage.out
...
...
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