forked from pseudomuto/protoc-gen-doc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
44 lines (35 loc) · 1.12 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
language: go
sudo: required
services:
- docker
env:
global:
- GO111MODULE="on"
- PROTOC_RELEASE="https://github.com/google/protobuf/releases/download/v3.6.1/protoc-3.6.1-linux-x86_64.zip"
- PROTOC_TARGET="${HOME}/protoc"
- PATH="${PROTOC_TARGET}/bin:${PATH}"
- secure: Tbet2rxD8QgjthAo+bxt41qbF2wUPTx0difGK5p4yQISK/njTuT5cqcxnOa4GIbyKtNtx0EgGnyVcQJiQkmZiF6Sabf0mtqU/CQ4PmVV76e9bHwA/CrTtudibMn16ozxuuxvhNxFOMQEhwcQOkW93M/Q9FZUEw9/CGpRGFfSzuA=
cache:
- "${HOME}/protoc"
go:
- 1.12.x
- master
install:
- if [ ! -d "${PROTOC_TARGET}" ]; then curl -fsSL "$PROTOC_RELEASE" > "${PROTOC_TARGET}.zip"; fi
- if [ -f "${PROTOC_TARGET}.zip" ]; then unzip "${PROTOC_TARGET}.zip" -d "${PROTOC_TARGET}"; fi
- go get github.com/golang/protobuf/{proto,protoc-gen-go} github.com/haya14busa/goverage
script:
- goverage -race -coverprofile=coverage.txt -covermode=atomic
- make bench
- make lint
after_success:
- bash <(curl -s https://codecov.io/bash)
deploy:
provider: script
script: script/push_to_docker.sh
skip_cleanup: true
on:
tags: true
all_branches: true
notifications:
email: false