-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
40 lines (32 loc) · 871 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
# this should give us faster builds according to
# http://docs.travis-ci.com/user/migrating-from-legacy/
sudo: false
dist: trusty
language: go
go:
# - tip
# - master
- 1.9
matrix:
allow_failures:
# - go: tip
fast_finish: true
before_install:
- go get github.com/golang/lint/golint
install:
- # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step).
script:
- go get -t -v ./...
- diff -u <(echo -n) <(gofmt -d -s .)
- go tool vet .
- go test -v -race ./...
- go test -v -coverprofile=coverage.txt -covermode=atomic
- golint ./... # This won't break the build, just show warnings
after_success:
- bash <(curl -s https://codecov.io/bash)
notifications:
email:
recipients:
- Travis.APA@a-bc.net
on_success: always
on_failure: always