magnetico/.travis.yml

42 lines
857 B
YAML
Raw Normal View History

2018-08-07 07:30:23 +00:00
# https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system
2018-08-03 08:51:20 +00:00
sudo: false
dist: xenial
2018-08-03 08:51:20 +00:00
language: go
go:
- "1.11"
2018-08-03 08:51:20 +00:00
# Only clone the most recent commit.
git:
depth: 1
2018-08-03 08:51:20 +00:00
env:
- DEP_VERSION="0.5.0"
before_install:
2018-08-03 09:54:26 +00:00
# Dump environment variables
- printenv
# Download dep binary to bin folder in $GOPATH
2018-08-03 08:51:20 +00:00
- 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:
- "go get -u -v github.com/kevinburke/go-bindata/..."
- "go get -u -v honnef.co/go/tools/cmd/staticcheck"
- "make ensure"
2018-08-03 09:23:00 +00:00
before_script:
- "make magneticod"
- "make magneticow"
script:
2018-08-03 08:51:20 +00:00
# The Unit Tests
- "make test"
2018-08-03 08:51:20 +00:00
# Static Analysis (vet)
- "make vet"
# Check formatting
- "make check-formatting"