-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.travis.yml
More file actions
41 lines (31 loc) · 749 Bytes
/
.travis.yml
File metadata and controls
41 lines (31 loc) · 749 Bytes
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
sudo: false
language: go
go:
- '1.12.x'
notifications:
email: false
branches:
only:
- master
cache:
directories:
- $HOME/gopath/pkg/mod # Cache the Go modules
services:
- 'docker'
install:
- go get golang.org/x/tools/cmd/cover
- go get github.com/mattn/goveralls
before_script:
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin latest
after_success:
- if [[ "$TRAVIS_BRANCH" == "master" ]]; then
docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD;
make push;
fi
jobs:
include:
- stage: tests
script:
- make coverage
- goveralls -coverprofile=coverage.out -service=travis-ci
- make image