-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
50 lines (48 loc) · 1.12 KB
/
.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
43
44
45
46
47
48
49
50
dist: bionic
language: go
go:
- 1.13.x
- master
- tip
os:
- linux
- osx
env: MOD=github.com/rambo/mumble_createchannels BINARY=mumble_createchannels
jobs:
allow_failures:
- go: tip
fast_finish: true
include:
- stage: deploy
name: Publish release
os: linux
go: master
script:
- invoke cc
deploy:
provider: releases
token:
secure: REPLACE_ME
file_glob: true
file: build/*
skip_cleanup: true
on:
repo: rambo/mumble_createchannels
tags: true
install: true
notifications:
email: false
before_script:
- pip install -U pip && pip install pre-commit invoke ruamel.yaml
- go get -u golang.org/x/lint/golint
- go get github.com/fzipp/gocyclo/cmd/gocyclo
- go get github.com/mitchellh/gox
# Do not change go.mod and go.sum
- git checkout go.mod go.sum
script:
- env GO111MODULE=on go build ${MOD}
- invoke pre-commit
- git diff
- env GO111MODULE=on go test -v -race -coverprofile=coverage.txt -coverpkg=all -covermode=atomic ./...
after_success:
- bash <(curl -s https://codecov.io/bash)