Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
open-source
dyndnsd-client
Commits
5efaffcb
Commit
5efaffcb
authored
Jun 12, 2022
by
Erick Hitter
Browse files
Merge branch 'add/common-ci' into 'master'
Switch to shared CI configuration See merge request
!5
parents
4559c5a9
fb929c22
Pipeline
#5793
passed with stages
in 9 minutes and 53 seconds
Changes
2
Pipelines
22
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
View file @
5efaffcb
image
:
containers.ethitter.com:443/docker/images/golang:latest
variables
:
REPO_NAME
:
git.ethitter.com/open-source/dyndnsd-client
cache
:
paths
:
-
/apt-cache
-
$GOPATH/src/github.com
-
$GOPATH/src/golang.org
-
$GOPATH/src/google.golang.org
-
$GOPATH/src/gopkg.in
stages
:
-
test
-
build
before_script
:
-
mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
-
cp -R $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
-
cd $GOPATH/src/$REPO_NAME
-
cp config-sample.json config.json
-
export CC=clang
-
make dep
unit_tests
:
stage
:
test
script
:
-
make test
race_detector
:
stage
:
test
script
:
-
make race
memory_sanitizer
:
stage
:
test
script
:
-
make msan
code_coverage
:
stage
:
test
script
:
-
make coverage
code_coverage_report
:
stage
:
test
script
:
-
make coverhtml
only
:
-
master
lint_code
:
stage
:
test
script
:
-
make lint
build
:
stage
:
build
script
:
-
make
artifacts
:
paths
:
-
dyndnsd-client/
include
:
-
remote
:
https://git-cdn.e15r.co/gitlab/ci/golang/-/raw/main/files/default.yml
Makefile
deleted
100644 → 0
View file @
4559c5a9
PROJECT_NAME
:=
"dyndnsd-client"
PKG
:=
"git.ethitter.com/open-source/
$(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
./...
@
go
install
github.com/mitchellh/gox@latest
build
:
dep
@
gox
-output
=
"
${CI_PROJECT_DIR}
/
${PROJECT_NAME}
/{{.Dir}}_{{.OS}}_{{.Arch}}"
-parallel
=
6
-osarch
'!darwin/386'
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}'
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment