Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
gitlab-runner-do-monitor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
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
Server Tools
gitlab-runner-do-monitor
Commits
d219df79
Commit
d219df79
authored
6 years ago
by
Erick Hitter
Browse files
Options
Downloads
Patches
Plain Diff
Go back to
7d6083d8
and drop any dependency installation in code quality test
The dependencies will never succeed.
parent
9983cb55
Branches
Branches containing commit
No related tags found
1 merge request
!4
WIP: Add additional CI checks
Pipeline
#231
passed with warnings
6 years ago
Stage: test
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+9
-13
9 additions, 13 deletions
.gitlab-ci.yml
Makefile
+39
-0
39 additions, 0 deletions
Makefile
with
48 additions
and
13 deletions
.gitlab-ci.yml
+
9
−
13
View file @
d219df79
...
@@ -23,49 +23,44 @@ before_script:
...
@@ -23,49 +23,44 @@ before_script:
-
export CC=clang-5.0
-
export CC=clang-5.0
-
go get -v -d ./...
-
make dep
-
export PROJECT_NAME="gitlab-runner-do-monitor"
-
export PKG="git.ethitter.com/debian/${PROJECT_NAME}"
-
export PKG_LIST=$(go list ${PKG}/... | grep -v /vendor/)
unit_tests
:
unit_tests
:
stage
:
test
stage
:
test
script
:
script
:
-
go
test
-v ${PKG_LIST}
-
make
test
race_detector
:
race_detector
:
stage
:
test
stage
:
test
script
:
script
:
-
go test -v -race ${PKG_LIST}
-
make race
memory_sanitizer
:
memory_sanitizer
:
stage
:
test
stage
:
test
script
:
script
:
-
go test -v -msan ${PKG_LIST}
-
make msan
code_coverage
:
code_coverage
:
stage
:
test
stage
:
test
script
:
script
:
-
./tools/
coverage
.sh
-
make
coverage
code_coverage_report
:
code_coverage_report
:
stage
:
test
stage
:
test
script
:
script
:
-
./tools/coverage.sh
html
-
make cover
html
only
:
only
:
-
master
-
master
lint_code
:
lint_code
:
stage
:
test
stage
:
test
script
:
script
:
-
golint -set_exit_status ${PKG_LIST}
-
make lint
build
:
build
:
stage
:
build
stage
:
build
script
:
script
:
-
go get github.com/mitchellh/gox
-
make
-
gox -output="${CI_PROJECT_DIR}/${PROJECT_NAME}/{{.Dir}}_{{.OS}}_{{.Arch}}" -parallel=6
artifacts
:
artifacts
:
paths
:
paths
:
-
gitlab-runner-do-monitor/
-
gitlab-runner-do-monitor/
...
@@ -78,6 +73,7 @@ code_quality:
...
@@ -78,6 +73,7 @@ code_quality:
allow_failure
:
true
allow_failure
:
true
services
:
services
:
-
docker:stable-dind
-
docker:stable-dind
before_script
:
script
:
script
:
-
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-
export SP_VERSION=$(echo "$CI_SERVER_VERSION" | sed 's/^\([0-9]*\)\.\([0-9]*\).*/\1-\2-stable/')
-
docker run
-
docker run
...
...
This diff is collapsed.
Click to expand it.
Makefile
0 → 100644
+
39
−
0
View file @
d219df79
PROJECT_NAME
:=
"gitlab-runner-do-monitor"
PKG
:=
"git.ethitter.com/debian/
$(
PROJECT_NAME
)
"
PKG_LIST
:=
$(
shell go list
${
PKG
}
/... |
grep
-v
/vendor/
)
GO_FILES
:=
$(
shell find
.
-name
'*.go'
|
grep
-v
/vendor/ |
grep
-v
_test.go
)
.PHONY
:
all dep build clean test coverage coverhtml lint
all
:
build
lint
:
@
golint
-set_exit_status
${
PKG_LIST
}
test
:
@
go
test
-v
${
PKG_LIST
}
race
:
dep
@
go
test
-v
-race
${
PKG_LIST
}
msan
:
dep
@
go
test
-v
-msan
${
PKG_LIST
}
coverage
:
./tools/coverage.sh
;
coverhtml
:
./tools/coverage.sh html
;
dep
:
@
go get
-v
-d
./...
@
go get github.com/mitchellh/gox
build
:
dep
@
gox
-output
=
"
${
CI_PROJECT_DIR
}
/
${
PROJECT_NAME
}
/{{.Dir}}_{{.OS}}_{{.Arch}}"
-parallel
=
6
clean
:
@
rm
-f
$(
PROJECT_NAME
)
help
:
@
grep
-h
-E
'^[a-zA-Z_-]+:.*?## .*$$'
$(
MAKEFILE_LIST
)
|
awk
'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
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