forked from BBVA/raft-badger
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
47 lines (36 loc) · 1.09 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
language: go
# Only the last two Go releases are supported by the Go team with security
# updates. Any versions older than that should be considered deprecated.
# Don't bother testing with them. tip builds your code with the latest
# development version of Go. This can warn you that your code will break
# in the next version of Go. Don't worry! Later we declare that test runs
# are allowed to fail on Go tip.
# https://github.com/travis-ci/travis-ci/issues/9247
go:
- "1.11"
env:
- GO111MODULE=on
# https://docs.travis-ci.com/user/languages/go/#Go-Import-Path
go_import_path: github.com/bbva/raft-badger
install: true
matrix:
allow_failures:
- go: master
fast_finish: true
# Don't email me the results of the test runs.
notifications:
email: false
before_script:
- go mod download
script:
- go test -v -coverprofile=coverage.txt -covermode=atomic ./...
- go vet -composites=false ./...
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
on:
tags: true
condition: $TRAVIS_OS_NAME = linux