4 Build and Test
hunterlong edited this page 2020-04-11 16:41:30 -07:00

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

git clone https://github.com/statping/statping.git
cd statup
go get -v

Install go.rice

Statping 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 Statping Binary

Statping 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