add build badge

Former-commit-id: 643d4deab2e102f606fb0c501af257b3772dbae7 [formerly 643d4deab2e102f606fb0c501af257b3772dbae7 [formerly bb0a6ab017ef8d9cb7ca5353d75708713cbc72bf [formerly 6c112ce433]]]
Former-commit-id: 58044fcf375dc6ead3e26f4dc878e7e98ad111b0
Former-commit-id: 11ff94a0358708bdce33506f3b64ed9b9f6e0207 [formerly ecf02c0798d8081deb8c2d7f353820e0842de20b]
Former-commit-id: 649f4925363be4d5cb7e6630c5dfb9fac9e80a0a
pull/15/head
Miguel Mota 6 years ago
parent 8ec75323e7
commit 1592808f65

@ -1,7 +1,9 @@
language: go
go:
- "1.9.x"
- "1.10.x"
- "master"
script:
- make test

@ -15,4 +15,4 @@ clean:
rm -f bin/cointop32
test:
@echo "no tests"
go test ./...

@ -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)
<img src="./assets/screenshot-001.gif" width="880" />

@ -0,0 +1,7 @@
package cointop
import "testing"
func TestRun(t *testing.T) {
// Run()
}

@ -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

Loading…
Cancel
Save