Skip to content

Migration to go.mod for dependency management #223

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
comment: off

ignore:
- legacy/**/*

coverage:
status:
project:
Expand Down
7 changes: 7 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
run:
skip-dirs:
- legacy

linters-settings:
govet:
check-shadowing: true
Expand All @@ -21,6 +25,9 @@ linters-settings:
linters:
enable-all: true
disable:
- goimports
- gocritic
- gochecknoglobals
- gosec
- deadcode
- dupl
Expand Down
19 changes: 4 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,18 @@
language: go

go:
- 1.11.x
- 1.12.x

env:
- DEP_VERSION="0.5.0"
- GO111MODULE=on

# Anything in before_script that returns a nonzero exit code will flunk the
# build and immediately stop. It's sorta like having set -e enabled in bash.
# Make sure golangci-lint is vendored.
before_install:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.10.2
# Download the binary to bin folder in $GOPATH
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
# Make the binary executable
- chmod +x $GOPATH/bin/dep
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v1.16.0

install:
# Check the dependency, -skip-lock may be useful because the version are not fixed but depends
# from the branch master of the libraries so they change very often
- dep check -skip-vendor
- dep ensure
install: true

script:
# Check if the code is formatted
Expand All @@ -34,6 +26,3 @@ script:
after_success:
- bash <(curl -s https://codecov.io/bash)

cache:
directories:
- $GOPATH/pkg/dep
Loading