diff --git a/.travis.yml b/.travis.yml index da456e7..1a5f7a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,9 @@ language: go + go: - "1.9.x" - "1.10.x" - "master" + script: - make test diff --git a/Makefile b/Makefile index 2621c98..313205c 100644 --- a/Makefile +++ b/Makefile @@ -15,4 +15,4 @@ clean: rm -f bin/cointop32 test: - @echo "no tests" + go test ./... diff --git a/README.md b/README.md index a293049..742eea1 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ > Coin tracking for hackers -[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/miguelmota/cointop/master/LICENSE.md) [![Go Report Card](https://goreportcard.com/badge/github.com/miguelmota/cointop?)](https://goreportcard.com/report/github.com/miguelmota/cointop) [![GoDoc](https://godoc.org/github.com/miguelmota/cointop?status.svg)](https://godoc.org/github.com/miguelmota/cointop) +[![License](http://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/miguelmota/cointop/master/LICENSE.md) [![Build Status](https://travis-ci.org/miguelmota/cointop.svg?branch=master)](https://travis-ci.org/miguelmota/cointop) [![Go Report Card](https://goreportcard.com/badge/github.com/miguelmota/cointop?)](https://goreportcard.com/report/github.com/miguelmota/cointop) [![GoDoc](https://godoc.org/github.com/miguelmota/cointop?status.svg)](https://godoc.org/github.com/miguelmota/cointop) diff --git a/cointop/cointop_test.go b/cointop/cointop_test.go new file mode 100644 index 0000000..65ab10d --- /dev/null +++ b/cointop/cointop_test.go @@ -0,0 +1,7 @@ +package cointop + +import "testing" + +func TestRun(t *testing.T) { + // Run() +} diff --git a/cointop/layout.go b/cointop/layout.go index 620cb41..5542ec8 100644 --- a/cointop/layout.go +++ b/cointop/layout.go @@ -119,12 +119,7 @@ func (ct *Cointop) updateCoins() error { for k := range ct.allcoins { c := ct.allcoins[k] if c.ID == cm.ID { - /* - if c.ID == "ethereum" { - // test - cm.PriceUSD = float64(time.Now().Unix()) - } - */ + // TODO: improve this c.ID = cm.ID c.Name = cm.Name c.Symbol = cm.Symbol