add build badge

pull/5/head
Miguel Mota 6 years ago
parent dd9f2d48b6
commit 6c112ce433

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