35 lines
603 B
YAML
35 lines
603 B
YAML
# https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system
|
|
sudo: false
|
|
dist: xenial
|
|
|
|
language: go
|
|
go:
|
|
- "1.12"
|
|
|
|
# Only clone the most recent commit.
|
|
git:
|
|
depth: 1
|
|
|
|
before_install:
|
|
# Dump environment variables
|
|
- printenv
|
|
|
|
install:
|
|
- "go get -u -v github.com/kevinburke/go-bindata/..."
|
|
- "go get -u -v honnef.co/go/tools/cmd/staticcheck"
|
|
|
|
before_script:
|
|
- "make magneticod"
|
|
- "make magneticow"
|
|
- "make image"
|
|
|
|
script:
|
|
# The Unit Tests
|
|
- "make test"
|
|
|
|
# Static Analysis (vet)
|
|
- "make vet"
|
|
|
|
# Check formatting
|
|
- "make check-formatting"
|