clair/.travis.yml

49 lines
890 B
YAML
Raw Normal View History

2015-12-02 17:39:13 +00:00
language: go
go:
2018-09-05 22:30:57 +00:00
- "1.11"
2016-12-04 01:19:29 +00:00
sudo: required
2015-12-02 17:39:13 +00:00
2018-04-22 19:21:02 +00:00
env:
global:
- PATH=$HOME/.local/bin:$PATH
2015-12-04 21:24:03 +00:00
install:
2016-12-04 01:19:29 +00:00
- curl https://glide.sh/get | sh
2018-04-22 19:21:02 +00:00
- mkdir -p $HOME/.local/bin
- curl -o $HOME/.local/bin/prototool -sSL https://github.com/uber/prototool/releases/download/v0.1.0/prototool-$(uname -s)-$(uname -m)
- chmod +x $HOME/.local/bin/prototool
2015-12-04 21:24:03 +00:00
2015-12-02 17:39:13 +00:00
script:
2018-09-05 22:30:57 +00:00
- diff -u <(echo -n) <(gofmt -l -s $(go list -f '{{.Dir}}') | grep -v '/vendor/')
2018-04-22 19:21:02 +00:00
- prototool format -d api/v3/clairpb/clair.proto
- prototool lint api/v3/clairpb/clair.proto
2016-11-11 16:57:41 +00:00
- go test $(glide novendor | grep -v contrib)
2015-12-02 17:39:13 +00:00
2016-12-04 01:19:29 +00:00
dist: trusty
2016-02-02 18:41:03 +00:00
2016-12-04 01:19:29 +00:00
services:
- postgresql
2015-12-02 18:39:59 +00:00
2015-12-02 17:39:13 +00:00
notifications:
email: false
matrix:
2016-12-04 01:19:29 +00:00
include:
- addons:
apt:
packages:
- rpm
postgresql: 9.4
- addons:
apt:
packages:
- rpm
postgresql: 9.5
- addons:
apt:
packages:
- rpm
postgresql: 9.6