Skip to content
Snippets Groups Projects

WIP: Add additional CI checks

Closed Erick Hitter requested to merge add/more-ci into master
2 files
+ 14
47
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 14
8
@@ -23,44 +23,50 @@ before_script:
@@ -23,44 +23,50 @@ before_script:
- export CC=clang-5.0
- export CC=clang-5.0
- make dep
- go get -v -d ./...
 
 
- 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:
- make test
- go test -v ${PKG_LIST}
race_detector:
race_detector:
stage: test
stage: test
script:
script:
- make race
- go test -v -race ${PKG_LIST}
memory_sanitizer:
memory_sanitizer:
stage: test
stage: test
script:
script:
- make msan
- go test -v -msan ${PKG_LIST}
code_coverage:
code_coverage:
stage: test
stage: test
script:
script:
- make coverage
- ./tools/coverage.sh
code_coverage_report:
code_coverage_report:
stage: test
stage: test
script:
script:
- make coverhtml
- ./tools/coverage.sh html
only:
only:
- master
- master
lint_code:
lint_code:
stage: test
stage: test
script:
script:
- make lint
- golint -set_exit_status ${PKG_LIST}
build:
build:
stage: build
stage: build
 
before_script:
 
- go get github.com/mitchellh/gox
script:
script:
- 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/
Loading