Skip to content

Commit 42a744d

Browse files
tboergerandreynering
authored andcommitted
Badges and travis testing (#40)
* Added badges to the README * Restructured the travis config
1 parent 2d68bd1 commit 42a744d

File tree

3 files changed

+33
-17
lines changed

3 files changed

+33
-17
lines changed

.travis.yml

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,34 @@
11
language: go
22

33
go:
4-
- 1.4
5-
- 1.5
64
- 1.6
75
- 1.7
86

97
before_install:
108
- sudo apt-get update -qq
119
- sudo apt-get install -y libpam-dev
12-
- go get github.com/msteinert/pam
10+
- go get github.com/msteinert/pam
1311

1412
install:
1513
- go get -t -v ./...
1614

17-
script:
18-
- go build -v -tags "pam"
19-
- go test -v -cover -race ./...
15+
script: |
16+
go build -v -tags "pam"
17+
18+
for pkg in $(go list ./... | grep -v /vendor/)
19+
do
20+
go test -v -race -cover -coverprofile $GOPATH/src/$pkg/coverage.out $pkg || exit 1
21+
done
22+
23+
after_success:
24+
- bash <(curl -s https://codecov.io/bash)
2025

2126
notifications:
22-
email:
23-
24-
slack: gophercn:o5pSanyTeNhnfYc3QnG0X7Wx
2527
webhooks:
28+
on_success: change
29+
on_failure: always
30+
on_start: never
2631
urls:
27-
- https://webhooks.gitter.im/e/b590f8e03882f7aedc3e
28-
on_success: change
29-
on_failure: always
30-
on_start: never
32+
- https://webhooks.gitter.im/e/ee6b822f3cf54c98e70c
33+
- https://webhooks.gitter.im/e/87428658ef177ce8a7e4
34+
- https://webhooks.gitter.im/e/a1d2b69804dfda72187e

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?branch=master)](https://travis-ci.org/gogits/gogs) [![Crowdin](https://d322cqt584bo4o.cloudfront.net/gogs/localized.svg)](https://crowdin.com/project/gogs) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gogits/gogs?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
2-
=====================
1+
# Gitea - Git with a cup of tea
2+
3+
[![Build Status](https://travis-ci.org/go-gitea/gitea.svg?branch=master)](https://travis-ci.org/go-gitea/gitea)
4+
[![codecov](https://codecov.io/gh/go-gitea/gitea/branch/master/graph/badge.svg)](https://codecov.io/gh/go-gitea/gitea)
5+
[![Go Report Card](https://goreportcard.com/badge/github.com/go-gitea/gitea)](https://goreportcard.com/report/github.com/go-gitea/gitea)
6+
[![GoDoc](https://godoc.org/github.com/go-gitea/gitea?status.svg)](https://godoc.org/github.com/go-gitea/gitea)
7+
[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](http://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
8+
[![Join the chat at https://gitter.im/go-gitea/gitea](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-gitea/gitea?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
39

410
![](https://github.com/go-gitea/gitea/blob/master/public/img/gogs-large-resize.png?raw=true)
511

README_ZH.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1-
Gogs - Go Git Service [![Build Status](https://travis-ci.org/gogits/gogs.svg?branch=master)](https://travis-ci.org/gogits/gogs)
2-
=====================
1+
# Gitea - Git with a cup of tea
2+
3+
[![Build Status](https://travis-ci.org/go-gitea/gitea.svg?branch=master)](https://travis-ci.org/go-gitea/gitea)
4+
[![codecov](https://codecov.io/gh/go-gitea/gitea/branch/master/graph/badge.svg)](https://codecov.io/gh/go-gitea/gitea)
5+
[![Go Report Card](https://goreportcard.com/badge/github.com/go-gitea/gitea)](https://goreportcard.com/report/github.com/go-gitea/gitea)
6+
[![GoDoc](https://godoc.org/github.com/go-gitea/gitea?status.svg)](https://godoc.org/github.com/go-gitea/gitea)
7+
[![](https://images.microbadger.com/badges/image/gitea/gitea.svg)](http://microbadger.com/images/gitea/gitea "Get your own image badge on microbadger.com")
8+
[![Join the chat at https://gitter.im/go-gitea/gitea](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-gitea/gitea?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
39

410
Gogs (Go Git Service) 是一款极易搭建的自助 Git 服务。
511

0 commit comments

Comments
 (0)