-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.travis.yml
20 lines (17 loc) · 1023 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
language: go
env:
- secure: "ACCvHWBVKddlUM5+fpTPsIM14At90jTXkUdhqDWJ8HKQvdQA33nBz1s6fq684S+/d1o1pPyhOTyqC3JVmMeOI8Dd07i+5ujAd/e5P7Zd3Bw1N/ZMO+rJylx73t+aYPJRog7sz4BAUPJS2Kn1/VZY4q6iS4Vx90kmgLNeTgkwwHo="
install:
- mkdir -p ${GOPATH}/src/github.com/Juniper
- (cd ${GOPATH}/src/github.com/Juniper && git clone https://github.com/Juniper/contrail-go-api)
- wget https://github.com/Juniper/contrail-go-api/releases/download/1.0.0/contrail-go-api-generated-types-r2.20.tar.gz
- tar -zxvf contrail-go-api-generated-types-r2.20.tar.gz -C ${GOPATH}/src
- mkdir -p ${GOPATH}/src/k8s.io
- (cd ${GOPATH}/src/k8s.io && git clone https://github.com/kubernetes/kubernetes.git)
- go get golang.org/x/tools/cmd/cover
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- GOPATH=${GOPATH}:${GOPATH}/src/k8s.io/kubernetes/Godeps/_workspace
script:
- gocov test -v ./... > coverage.json
- ${HOME}/gopath/bin/goveralls -gocovdata=coverage.json -service=travis-ci -repotoken=${COVERALLS_TOKEN}