add travis

This commit is contained in:
JunDao
2019-05-17 00:05:17 +08:00
parent a005470e2b
commit ceebc11e72
2 changed files with 10 additions and 3 deletions

7
.travis.yml Normal file
View File

@ -0,0 +1,7 @@
language: go
go:
- "1.12"
- master
go_import_path: github.com/Tnze/go-mc

View File

@ -1,4 +1,4 @@
# GO-MC # Go-MC
![](https://img.shields.io/badge/Minecraft-1.14-blue.svg) ![](https://img.shields.io/badge/Minecraft-1.14-blue.svg)
![](https://img.shields.io/badge/Protocol-477-blue.svg) ![](https://img.shields.io/badge/Protocol-477-blue.svg)
[![GoDoc](https://godoc.org/github.com/Tnze/go-mc?status.svg)](https://godoc.org/github.com/Tnze/go-mc) [![GoDoc](https://godoc.org/github.com/Tnze/go-mc?status.svg)](https://godoc.org/github.com/Tnze/go-mc)
@ -19,7 +19,7 @@ Some examples are at `/cmd` folder.
# Getting start # Getting start
After you install golang tools: After you install golang tools:
- run `go run cmd/ping/ping.go` to ping and list the Miaoscraft mc-server. - Run `go run cmd/ping/ping.go` to ping and list the Miaoscraft mc-server.
- run `go run cmd/daze/daze.go` to join local server at *localhost:25565* as Steve on offline mode. - Run `go run cmd/daze/daze.go` to join local server at *localhost:25565* as Steve on offline mode.
See `/bot` folder to get more infomation about how to create your own robot. See `/bot` folder to get more infomation about how to create your own robot.