mirror of https://github.com/statping/statping
Created Build and Test (markdown)
parent
f0cb3f9aae
commit
e6182e6e15
|
@ -0,0 +1,29 @@
|
|||
Building from the Go Language source code is pretty easy if you already have Go installed. Clone this repo and `cd` into it.
|
||||
|
||||
### Git n' Go Get
|
||||
```bash
|
||||
git clone https://github.com/hunterlong/statup.git
|
||||
cd statup
|
||||
go get -v
|
||||
```
|
||||
|
||||
### Install go.rice
|
||||
Statup uses go.rice to compile HTML, JS, and CSS files into it's single binary output.
|
||||
```
|
||||
go get github.com/GeertJohan/go.rice
|
||||
go get github.com/GeertJohan/go.rice/rice
|
||||
```
|
||||
|
||||
### Build Statup Binary
|
||||
Statup uses go.rice to compile HTML, JS, and CSS files into it's single binary output.
|
||||
```
|
||||
rice embed-go
|
||||
go build -o statup .
|
||||
./statup version
|
||||
```
|
||||
|
||||
### Test Coverage
|
||||
You can also test Statio on your localhost, but it does require a MySQL, and Postgres server to be accessible since testing does create/drop tables for multiple databases.
|
||||
```
|
||||
go test -v
|
||||
```
|
Loading…
Reference in New Issue