forked from cayleygraph/cayley
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
42 lines (34 loc) · 853 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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