Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
registration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package 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
elixxir
registration
Commits
b898851b
Commit
b898851b
authored
5 years ago
by
Rick Carback
Browse files
Options
Downloads
Patches
Plain Diff
Update build to use go-acc
parent
9b897c95
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+3
-7
3 additions, 7 deletions
.gitlab-ci.yml
with
3 additions
and
7 deletions
.gitlab-ci.yml
+
3
−
7
View file @
b898851b
...
@@ -9,7 +9,7 @@ cache:
...
@@ -9,7 +9,7 @@ cache:
variables
:
variables
:
REPO_DIR
:
gitlab.com/elixxir
REPO_DIR
:
gitlab.com/elixxir
REPO_NAME
:
registration
REPO_NAME
:
registration
DOCKER_IMAGE
:
golang:1.13.4-buster
DOCKER_IMAGE
:
elixxirlabs/cuda-go:latest
MIN_CODE_COVERAGE
:
"
0.0"
MIN_CODE_COVERAGE
:
"
0.0"
before_script
:
before_script
:
...
@@ -23,7 +23,7 @@ before_script:
...
@@ -23,7 +23,7 @@ before_script:
-
chmod 700 ~/.ssh
-
chmod 700 ~/.ssh
-
ssh-keyscan -t rsa gitlab.com > ~/.ssh/known_hosts
-
ssh-keyscan -t rsa gitlab.com > ~/.ssh/known_hosts
-
git config --global url."git@gitlab.com:".insteadOf "https://gitlab.com/"
-
git config --global url."git@gitlab.com:".insteadOf "https://gitlab.com/"
-
export
GOFLAGS=-mod=vendor
-
export
PATH=$HOME/go/bin:$PATH
-
export GOPRIVATE=gitlab.com/elixxir/*
-
export GOPRIVATE=gitlab.com/elixxir/*
stages
:
stages
:
...
@@ -52,13 +52,9 @@ test:
...
@@ -52,13 +52,9 @@ test:
except
:
except
:
-
tags
-
tags
script
:
script
:
-
GO111MODULE=off go get -u github.com/haya14busa/goverage
-
apt-get update
-
apt-get install bc -y
-
mkdir -p testdata
-
mkdir -p testdata
# Test coverage
# Test coverage
-
go
verage -coverprofile=
testdata/coverage
-real
.out
-v
./...
2>&1 | grep -v "no packages being tested depend on"
-
go
-acc --covermode atomic --output
testdata/coverage.out ./...
-- -v
# Exclude cmd from test coverage as it is command line related tooling
# Exclude cmd from test coverage as it is command line related tooling
# - grep -v -e cmd testdata/coverage.out > testdata/coverage-real.out
# - grep -v -e cmd testdata/coverage.out > testdata/coverage-real.out
-
go tool cover -func=testdata/coverage-real.out
-
go tool cover -func=testdata/coverage-real.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