Skip to content
This repository was archived by the owner on Aug 1, 2023. It is now read-only.

Commit de2b782

Browse files
committed
Merge pull request #537 from jrperritt/coveralls-badge
[WIP] try to fix coveralls in .travis.yml
2 parents 3be6938 + b4b087b commit de2b782

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.travis.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
language: go
2+
sudo: false
23
install:
34
- go get golang.org/x/crypto/ssh
45
- go get -v -tags 'fixtures acceptance' ./...
56
go:
67
- 1.4
78
- 1.5
89
- tip
9-
script: script/cibuild
10-
after_success:
11-
- go get golang.org/x/tools/cmd/cover
10+
env:
11+
- COVERALLS_TOKEN=2k7PTU3xa474Hymwgdj6XjqenNfGTNkO8
12+
before_install:
1213
- go get github.com/axw/gocov/gocov
1314
- go get github.com/mattn/goveralls
14-
- export PATH=$PATH:$HOME/gopath/bin/
15-
- goveralls 2k7PTU3xa474Hymwgdj6XjqenNfGTNkO8
16-
sudo: false
15+
- go get github.com/pierrre/gotestcover
16+
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
17+
script:
18+
- $HOME/gopath/bin/gotestcover -v -tags=fixtures -coverprofile=cover.out ./...
19+
after_success:
20+
- $HOME/gopath/bin/goveralls -service=travis-ci -coverprofile=cover.out

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Gophercloud: an OpenStack SDK for Go
2-
[![Build Status](https://travis-ci.org/rackspace/gophercloud.svg?branch=master)](https://travis-ci.org/rackspace/gophercloud)
2+
[![Build Status](https://travis-ci.org/rackspace/gophercloud.svg?branch=master)](https://travis-ci.org/rackspace/gophercloud) [![Coverage Status](https://coveralls.io/repos/rackspace/gophercloud/badge.png)](https://coveralls.io/r/rackspace/gophercloud)
33

44
Gophercloud is a flexible SDK that allows you to consume and work with OpenStack
55
clouds in a simple and idiomatic way using golang. Many services are supported,

0 commit comments

Comments
 (0)