-
-
Notifications
You must be signed in to change notification settings - Fork 398
/
Copy path.travis.yml
34 lines (29 loc) · 1.01 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
language: go
go:
- 1.12.x
env:
- GO111MODULE=on PATH=$HOME/protobuf/bin:$PATH
# Anything in before_script that returns a nonzero exit code will flunk the
# build and immediately stop. It's sorta like having set -e enabled in bash.
# Make sure golangci-lint is vendored.
install:
- curl -sL https://taskfile.dev/install.sh | sh
- go get github.com/golangci/govet
- go get golang.org/x/lint/golint
- go get -u github.com/golang/protobuf/protoc-gen-go
- |
mkdir -p $HOME/protobuf && pushd $HOME/protobuf &&
curl -LO 'https://github.com/google/protobuf/releases/download/v3.8.0/protoc-3.8.0-linux-x86_64.zip' &&
unzip protoc-3.8.0-linux-x86_64.zip &&
popd
script:
# Check if the code is formatted and run linter
- ./bin/task check
# Build and test
- ./bin/task protoc
- ./bin/task build
- ./bin/task test
- ./bin/task test-legacy
after_success:
- bash <(curl -s https://codecov.io/bash) -cF unit -f '*_unit.txt'
- bash <(curl -s https://codecov.io/bash) -cF integ -f '*_integ.txt'