sentinel/.travis.yml

32 lines
494 B
YAML
Raw Normal View History

2021-03-04 08:04:05 +01:00
os: linux
dist: xenial
language: go
2021-03-06 16:55:39 +01:00
go_import_path: github.com/lbryio/sentinel
2021-03-04 08:04:05 +01:00
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