Skip to content

Commit

Permalink
add .travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexilee committed Sep 30, 2018
1 parent 50d65cd commit 4b0e5df
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .travis.yml
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="
5 changes: 5 additions & 0 deletions README.md
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)

0 comments on commit 4b0e5df

Please sign in to comment.