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
!2
Update how webhooks are sent
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Update how webhooks are sent
fix/tests
into
master
Overview
0
Commits
5
Pipelines
3
Changes
3
Merged
Erick Hitter
requested to merge
fix/tests
into
master
6 years ago
Overview
0
Commits
5
Pipelines
3
Changes
3
Expand
Fixes
#6 (closed)
Edited
6 years ago
by
Erick Hitter
0
0
Merge request reports
Compare
master
version 2
889da035
6 years ago
version 1
a2ebd7b2
6 years ago
master (base)
and
latest version
latest version
bbb28a38
5 commits,
6 years ago
version 2
889da035
3 commits,
6 years ago
version 1
a2ebd7b2
1 commit,
6 years ago
3 files
+
53
−
61
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
.gitlab-ci.yml
+
26
−
30
Options
# This file is a template, and might need editing before it works on your project.
image
:
golang:latest
variables
:
REPO_NAME
:
git.ethitter.com/debian/eth-log-alerting
# The problem is that to be able to use go get, one needs to put
# the repository in the $GOPATH. So for example if your gitlab domain
# is
mydomainperso
.com, and that your repository is
repos
/project
name
, and
# is
gitlab
.com, and that your repository is
namespace
/project, and
# the default GOPATH being /go, then you'd need to have your
# repository in /go/src/
mydomainperso.com/repos
/project
name
# repository in /go/src/
gitlab.com/namespace
/project
# Thus, making a symbolic link corrects this.
before_script
:
-
ln -s /builds /go/src/git.ethitter.com
-
cd /go/src/git.ethitter.com/debian/eth-log-alerting
-
mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
-
ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
-
cd $GOPATH/src/$REPO_NAME
-
go version
-
go get github.com/asaskevich/govalidator
-
go get github.com/ashwanthkumar/slack-go-webhook
-
go get github.com/hpcloud/tail
stages
:
-
test
-
build
-
test
-
build
format
:
stage
:
test
script
:
# Add here all the dependencies, or use glide/govendor to get
# them automatically.
# - curl https://glide.sh/get | sh
-
go get github.com/42wim/matterbridge/matterhook
-
go get github.com/asaskevich/govalidator
-
go get github.com/hpcloud/tail
-
go get github.com/alecthomas/kingpin
-
go tool vet -composites=false -shadow=true *.go
-
go test -race $(go list ./... | grep -v /vendor/)
stage
:
test
script
:
-
go tool vet -composites=false -shadow=true *.go
-
go test -race $(go list ./... | grep -v /vendor/)
compile
:
stage
:
build
script
:
# Add here all the dependencies, or use glide/govendor/...
# to get them automatically.
-
go get github.com/42wim/matterbridge/matterhook
-
go get github.com/asaskevich/govalidator
-
go get github.com/hpcloud/tail
-
go get github.com/alecthomas/kingpin
# Better put this in a Makefile
-
go build -race -ldflags "-extldflags '-static'" -o eth-log-alerting
artifacts
:
paths
:
-
eth-log-alerting
stage
:
build
script
:
-
go build -race -ldflags "-extldflags '-static'" -o eth-log-alerting
artifacts
:
paths
:
-
eth-log-alerting
Loading