Revision 3ca661b1f61e560162e770ab7172ecd3d7a86c93 authored by Christian Banse on 19 May 2021, 20:33:21 UTC, committed by Christian Banse on 19 May 2021, 20:33:21 UTC
1 parent 37d2a4b
.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
- go run cmd/download_ui/download_ui.go
cache:
directories:
- $GOPATH/pkg/mod
script:
- CGO_ENABLED=0 go build -o /tmp/cayley ./cmd/cayley
- go run github.com/gobuffalo/packr/v2/packr2
- git checkout -- ./packrd/dummy.go
- go get -u golang.org/x/lint/golint
- bash lint.sh
- go test -v ./...
after_success:
- test -n "$TRAVIS_TAG" && echo "$SNAP_TOKEN" > /tmp/snap.login && snapcraft login --with /tmp/snap.login
deploy:
- provider: script
skip_cleanup: true
script: git status && curl -sL https://git.io/goreleaser | bash
on:
tags: true
condition: $TRAVIS_OS_NAME = linux && $TRAVIS_GO_VERSION =~ ^1\.13
Computing file changes ...