forked from google/monologue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (31 loc) · 917 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
version: ~> 1.0
language: go
go_import_path: github.com/google/monologue
go:
- 1.13
cache:
directories:
- $GOPATH/pkg/mod
env:
global:
- GO111MODULE=on
jobs:
include:
- name: go mod tidy
install: skip
before_script: go mod tidy -v
script: git diff --exit-code -- go.mod go.sum
- name: test with coverage
env:
- WITH_COVERAGE=true
after_success:
# Upload coverage info as per https://docs.codecov.io/docs/about-the-codecov-bash-uploader
- bash <(curl -s https://codecov.io/bash)
- name: test with race detection
env:
- GOFLAGS='-race'
install:
# Install golangci-lint as per https://github.com/golangci/golangci-lint#install
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.18.0
script:
- ./scripts/presubmit.sh ${WITH_COVERAGE:+--coverage}