Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
eth-log-alerting
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
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
eth-log-alerting
Merge requests
!4
Better CI
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Better CI
fix/7-improve-ci
into
master
Overview
0
Commits
11
Pipelines
10
Changes
1
Merged
Erick Hitter
requested to merge
fix/7-improve-ci
into
master
7 years ago
Overview
0
Commits
11
Pipelines
10
Changes
1
Expand
Fixes
#7 (closed)
Edited
7 years ago
by
Erick Hitter
0
0
Merge request reports
Viewing commit
af4555f9
Prev
Next
Show latest version
1 file
+
1
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
af4555f9
Symlink is ignored
· af4555f9
Erick Hitter
authored
7 years ago
.gitlab-ci.yml
+
48
−
23
Options
# This file is a template, and might need editing before it works on your project.
image
:
containers.ethitter.com:443/docker/images/golang:latest
image
:
golang:latest
variables
:
variables
:
REPO_NAME
:
git.ethitter.com/debian/eth-log-alerting
REPO_NAME
:
git.ethitter.com/debian/eth-log-alerting
# The problem is that to be able to use go get, one needs to put
cache
:
# the repository in the $GOPATH. So for example if your gitlab domain
paths
:
# is gitlab.com, and that your repository is namespace/project, and
-
/apt-cache
# the default GOPATH being /go, then you'd need to have your
-
$GOPATH/src/github.com
# repository in /go/src/gitlab.com/namespace/project
-
$GOPATH/src/golang.org
# Thus, making a symbolic link corrects this.
-
$GOPATH/src/google.golang.org
-
$GOPATH/src/gopkg.in
stages
:
-
test
-
build
before_script
:
before_script
:
-
mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
-
mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
-
ln -svf
$CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
-
cp -R
$CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
-
cd $GOPATH/src/$REPO_NAME
-
cd $GOPATH/src/$REPO_NAME
-
cp config-sample.json config.json
-
go version
-
export CC=clang-5.0
-
go get github.com/asaskevich/govalidator
-
make dep
-
go get github.com/ashwanthkumar/slack-go-webhook
-
go get github.com/hpcloud/tail
stages
:
unit_tests
:
-
test
stage
:
test
-
build
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
format
:
lint_code
:
stage
:
test
stage
:
test
script
:
script
:
-
go tool vet -composites=false -shadow=true *.go
-
make lint
-
go test -race $(go list ./... | grep -v /vendor/)
comp
il
e
:
bu
il
d
:
stage
:
build
stage
:
build
script
:
script
:
-
go get github.com/mitchellh/gox
-
make
-
gox -output="eth-log-alerting-builds/{{.Dir}}_{{.OS}}_{{.Arch}}" -parallel=4
artifacts
:
artifacts
:
paths
:
paths
:
-
eth-log-alerting-builds/
-
eth-log-alerting-builds/
\ No newline at end of file
Loading