-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
language: go # 声明构建语言环境 | ||
sudo: false # 开启基于容器的Travis CI任务,让编译效率更高。 | ||
|
||
notifications: # 每次构建的时候是否通知,如果不想收到通知,那就设置false吧(email: false) | ||
email: | ||
recipients: | ||
- hexileee@gmail.com | ||
on_success: change | ||
on_failure: always | ||
|
||
go: | ||
- "1.11" | ||
|
||
install: | ||
- go build | ||
- go get github.com/mattn/goveralls | ||
|
||
|
||
script: # 集成脚本 | ||
- go test -v -cover -coverprofile=go.coverprofile | ||
- goveralls -coverprofile=go.coverprofile -service=travis-ci -repotoken $COVERALLS_TOKEN | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) | ||
|
||
env: #env环境变量设置,travis提供的repo_token安全方式 | ||
global: | ||
secure: "XgZkE9tb9of2lsnXepbJeQU2xj3RuJea1zjlWh4W8ukH8Nwp9CJ6wfs3YnuchV+x1npgY1qE+sdWpieB6brQZgqJNzhC9vXcdOissPUviS0JUctric2UEz+4b0C4pN0LsTYCCENdTdFi62S/0LzyXugumVdeQHHtE75EknnhRhaQh4Dz04c7O7SBygVHEn9DwpbD8LRYVXwrSQ8aeWqhRgI6t4LRYInAs0M8hV4AE1HyKSkIueFQcbAfsV1lMB+pfiVHin5g6veRtRYq+++LzyoQ+gsSKx7yfFFOafKiw6e47lAKQaBQzkkkwy9RaB5KcWhI3CQfYZL7fKwqNy7ytKg3l9oboFEqGc42U6ZiGa1DLv8y3f2yaNtkgSpw5QMRjEd+iYVb2EFISfelUFq4srJ4utv+bn47/tBURN2dsLVAgKY/Z8uPv2fvbIUbkbej91uRyRDGQs1z02MW+66DacfnGrZz3yNFYCffTLCDBFFhrG2IsP7tJuSz7s9RnRnQoGTk5mImPCMnYIhTO0sQj4083qmT6+drx0RPVqUMjm99JeTFfMZfpzXyNAe1zP2DU8IqtKdtk4dzodBPy8MvWKsYNJHwjZKJmQyrOWW74+OvchG2WHN3gkY7fXKqalNWK/yb8ARBsj0TKbGPn29okXp5ut8UHXpVDrN+Kg7BAyg=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[![Coverage Status](https://coveralls.io/repos/github/Hexilee/unhtml/badge.svg)](https://coveralls.io/github/Hexilee/unhtml) | ||
[![Go Report Card](https://goreportcard.com/badge/github.com/Hexilee/unhtml)](https://goreportcard.com/report/github.com/Hexilee/unhtml) | ||
[![Build Status](https://travis-ci.org/Hexilee/unhtml.svg?branch=master)](https://travis-ci.org/Hexilee/unhtml) | ||
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/Hexilee/unhtml/blob/master/LICENSE) | ||
[![Documentation](https://godoc.org/github.com/Hexilee/unhtml?status.svg)](https://godoc.org/github.com/Hexilee/unhtml) |