brew test

pull/15/head
Miguel Mota 6 years ago
parent c4f0999a5e
commit b730f5e01c

@ -359,6 +359,10 @@ Action|Description
- A: Press <kbd>?</kbd> to toggle the help menu. Press <kbd>q</kbd> to close help menu.
- Q: I'm getting the error: `new gocui: termbox: error while reading terminfo data: EOF` when trying to run.
- A: Try setting the environment variable `TERM=screen-256color`
## Development
### Snap

@ -1,8 +1,8 @@
class Cointop < Formula
desc "Interactive terminal based UI application for tracking cryptocurrencies"
homepage "https://cointop.sh"
url "https://github.com/miguelmota/cointop/archive/1.0.0.tar.gz"
sha256 "8ff6988cd18b35dbf85436add19135a587e03702b43744f563f137bb067f6e04"
url "https://github.com/miguelmota/cointop/archive/1.0.1.tar.gz"
sha256 "bb5450c734a2d0c54a1dc7d7f42be85eb2163c03e6d3dc1782d74b54a8cbfa69"
depends_on "go" => :build
@ -16,6 +16,6 @@ class Cointop < Formula
end
test do
system bin"/cointop", "-test"
system "TERM=screen-256color #{bin}/cointop -test"
end
end

@ -3,11 +3,12 @@ package main
import (
"flag"
"fmt"
"time"
"github.com/miguelmota/cointop/cointop"
)
var version = "1.0.0"
var version = "1.0.1"
func main() {
var ver bool
@ -28,6 +29,9 @@ func main() {
}
func runTest() {
// TODO
fmt.Println("ok")
go func() {
cointop.Run()
}()
time.Sleep(1 * time.Second)
cointop.Exit()
}

@ -1,29 +0,0 @@
// Copyright 2017 Zack Guo <zack.y.guo@gmail.com>. All rights reserved.
// Use of this source code is governed by a MIT license that can
// be found in the LICENSE file.
/*
Package termui is a library designed for creating command line UI. For more info, goto http://github.com/gizak/termui
A simplest example:
package main
import ui "github.com/gizak/termui"
func main() {
if err:=ui.Init(); err != nil {
panic(err)
}
defer ui.Close()
g := ui.NewGauge()
g.Percent = 50
g.Width = 50
g.BorderLabel = "Gauge"
ui.Render(g)
ui.Loop()
}
*/
package termui
Loading…
Cancel
Save