From 1592808f650d6131f0f3aaeb7e04560b2f7e754d Mon Sep 17 00:00:00 2001 From: Miguel Mota Date: Tue, 3 Apr 2018 01:30:15 -0700 Subject: [PATCH] add build badge Former-commit-id: 643d4deab2e102f606fb0c501af257b3772dbae7 [formerly 643d4deab2e102f606fb0c501af257b3772dbae7 [formerly bb0a6ab017ef8d9cb7ca5353d75708713cbc72bf [formerly 6c112ce433415eea949ce50f93b339feb2768d0e]]] Former-commit-id: 58044fcf375dc6ead3e26f4dc878e7e98ad111b0 Former-commit-id: 11ff94a0358708bdce33506f3b64ed9b9f6e0207 [formerly ecf02c0798d8081deb8c2d7f353820e0842de20b] Former-commit-id: 649f4925363be4d5cb7e6630c5dfb9fac9e80a0a --- .travis.yml | 2 ++ Makefile | 2 +- README.md | 2 +- cointop/cointop_test.go | 7 +++++++ cointop/layout.go | 7 +------ 5 files changed, 12 insertions(+), 8 deletions(-) create mode 100644 cointop/cointop_test.go 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