-
Notifications
You must be signed in to change notification settings - Fork 28
/
.travis.yml
31 lines (26 loc) · 949 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
language: go
go:
- "1.10.x"
- tip
env:
REPO_NAME: github.com/blk-io/crux
before_install:
- sudo apt-get update -qq && sudo apt-get install -y -qq libdb-dev libpthread-stubs0-dev # This is hopefully temporary until we completely remove BerkeleyDB.
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $TRAVIS_BUILD_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
- curl -OL https://github.com/google/protobuf/releases/download/v3.5.1/protoc-3.5.1-linux-x86_64.zip
- unzip protoc-3.5.1-linux-x86_64.zip -d protoc3
- sudo mv protoc3/bin/* /usr/local/bin/
- sudo mv protoc3/include/* /usr/local/include/
- rm -r protoc3
- rm protoc-3.5.1-linux-x86_64.zip
- go get -u github.com/golang/protobuf/protoc-gen-go
- go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
- make setup
script:
- make build
- make test
- make cover
after_success:
- bash <(curl -s https://codecov.io/bash)