magnetico/.travis.yml

35 lines
603 B
YAML
Raw Normal View History

2018-08-07 09:30:23 +02:00
# https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system
2018-08-03 10:51:20 +02:00
sudo: false
dist: xenial
2018-08-03 10:51:20 +02:00
language: go
go:
2019-05-19 11:31:49 +02:00
- "1.12"
2018-08-03 10:51:20 +02:00
# Only clone the most recent commit.
git:
depth: 1
2018-08-03 10:51:20 +02:00
before_install:
2018-08-03 11:54:26 +02:00
# Dump environment variables
- printenv
install:
- "go get -u -v github.com/kevinburke/go-bindata/..."
- "go get -u -v honnef.co/go/tools/cmd/staticcheck"
2018-08-03 11:23:00 +02:00
before_script:
- "make magneticod"
- "make magneticow"
2019-05-19 11:31:49 +02:00
- "make image"
script:
2018-08-03 10:51:20 +02:00
# The Unit Tests
- "make test"
2018-08-03 10:51:20 +02:00
# Static Analysis (vet)
- "make vet"
# Check formatting
- "make check-formatting"