forked from mikkeloscar/pdb-controller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
41 lines (30 loc) · 824 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
dist: xenial
sudo: false
language: go
go:
- 1.12.4
install: true
notifications:
email: false
env:
# enforcing go mod in GOPATH
- GO111MODULE=on
services:
- docker
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.16.0
- docker --version
script:
- golangci-lint run # run a bunch of code checkers/linters in parallel
- go test -v -race -coverprofile=coverage.txt -covermode=atomic ./... # run all the tests with the race detector enabled
after_success:
- bash <(curl -s https://codecov.io/bash)
# calls goreleaser
deploy:
- provider: script
skip_cleanup: true
script: curl -sL https://git.io/goreleaser | bash
on:
tags: true
all_branches: true
condition: $TRAVIS_OS_NAME = linux