sentinel/.travis.yml
2021-03-06 10:55:39 -05:00

32 lines
494 B
YAML

os: linux
dist: xenial
language: go
go_import_path: github.com/lbryio/sentinel
go:
- 1.15
install: true
services:
- docker
cache:
directories:
- $HOME/.cache/go-build
- $HOME/gopath/pkg/mod
script:
- ./scripts/build.sh
- go test ./...
- ./scripts/lint.sh
- go mod tidy
- git diff --exit-code
deploy:
# creates and publishes new docker image per branch
- provider: script
script: bash docker/docker.sh
skip_cleanup: true
on:
all_branches: true