forked from cern-eos/grpc-proto
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
29 lines (28 loc) · 795 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
language: go
go_import_path: google.golang.org/grpc
before_install:
- mkdir "${HOME}/go"; export GOPATH="${HOME}/go"
- go mod init
install:
- try3() { eval "$*" || eval "$*" || eval "$*"; }
- ./getprotoc.sh -install
- set -e
- pwd
- cd protobuf
- export GO111MODULE=on
- go get github.com/golang/protobuf/[email protected]
script:
- git checkout master
- export PATH="$PATH:$(go env GOPATH)/bin"
- ls -l /home/travis
- echo "-----------------------------------"
- which protoc
- protoc --version
- "/home/travis/bin/protoc ./Rpc.proto --go_out=plugins=grpc:."
- echo "// `date`" >> Rpc.pb.go
- echo "-----------------------------------"
after_script:
- ls -l
- git status
- git commit -a -m "Automatic update Rpc.pb.go [ci skip]"
- git push https://${GH_TOKEN}@github.com/ffurano/grpc-proto