forked from alecthomas/go-thrift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
40 lines (38 loc) · 1.02 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
language: go
sudo: false
go:
- 1.5.1
- tip
branches:
only:
- master
script:
- go build ./...
- go fmt ./...
- go get golang.org/x/tools/cmd/vet
- go vet ./...
- go test -i -race -cover ./...
- go test -v -race -cover -coverprofile cover.out ./thrift
- go tool cover -func=cover.out
- go test -v -race -cover -coverprofile cover.out ./parser
- go tool cover -func=cover.out
- go test -v -race -cover -coverprofile cover.out ./generator
- go tool cover -func=cover.out
- go build -o gen ./generator/
- mkdir tmp
# cassandra.thrift
- ./gen testfiles/cassandra.thrift tmp/
- go build ./tmp/cassandra/
- go vet ./tmp/cassandra/
- rm -rf ./tmp/cassandra
- ./gen -go.pointers=true testfiles/cassandra.thrift tmp/
- go build ./tmp/cassandra/
- go vet ./tmp/cassandra
# Hbase.thrift
- ./gen testfiles/Hbase.thrift tmp/
- go build ./tmp/hbase/
- go vet ./tmp/hbase/
- rm -rf ./tmp/hbase
- ./gen -go.pointers=true testfiles/Hbase.thrift tmp/
- go build ./tmp/hbase/
- go vet ./tmp/hbase