Revision b0bd81228fb5bf7fcd1d26a40ab991b11d77a57b authored by Denys Smirnov on 14 October 2019, 12:08:17 UTC, committed by Denys Smirnov on 14 October 2019, 12:08:17 UTC
1 parent d698262
.travis.yml
language: go
addons:
apt:
packages:
- snapd
go:
- "1.13.x"
- tip
matrix:
allow_failures:
- go: tip
install:
- sudo snap install snapcraft --classic
- go mod download
cache:
directories:
- $GOPATH/pkg/mod
- /var/lib/snapd/cache
script:
- CGO_ENABLED=0 go build ./cmd/cayley
- go run github.com/gobuffalo/packr/v2/packr2
- go test -v ./...
after_success:
- test -n "$TRAVIS_TAG" && echo "$SNAP_TOKEN" > snap.login && snapcraft login --with snap.login
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux && $TRAVIS_GO_VERSION =~ ^1\.13
Computing file changes ...