32 lines
No EOL
496 B
YAML
32 lines
No EOL
496 B
YAML
os: linux
|
|
dist: xenial
|
|
language: go
|
|
go_import_path: github.com/lbryio/dispendium
|
|
|
|
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 |