Commit 5b724c6f authored by Cristian Maglie's avatar Cristian Maglie Committed by Cristian Maglie

Updated travis build conf

parent ce35ba46
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.
......@@ -13,14 +13,8 @@ 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
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
......@@ -34,6 +28,3 @@ script:
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- $GOPATH/pkg/dep
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment