fix travis and tests
This commit is contained in:
@@ -5,5 +5,10 @@ go:
|
||||
- 1.7
|
||||
- tip
|
||||
|
||||
script:
|
||||
- go test -v
|
||||
before_install:
|
||||
- cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/vendor/rpi-rgb-led-matrix/
|
||||
- git submodule update --init
|
||||
- make
|
||||
- cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/
|
||||
- go get -t -v ./...
|
||||
- go install -v ./...
|
||||
|
||||
@@ -25,12 +25,11 @@ Then you will get an **expected** error like this:
|
||||
collect2: error: ld returned 1 exit status
|
||||
```
|
||||
|
||||
This happens because you need to have installed the `rgbmatrix` C bindings, execute the following commands to install it:
|
||||
|
||||
This happens because you need to compile the `rgbmatrix` C bindings:
|
||||
```sh
|
||||
cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/vendor/rpi-rgb-led-matrix/
|
||||
git submodule update --init
|
||||
make install
|
||||
make
|
||||
cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/
|
||||
go install -v ./...
|
||||
```
|
||||
|
||||
@@ -2,7 +2,6 @@ package main
|
||||
|
||||
import (
|
||||
"flag"
|
||||
"image"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
|
||||
@@ -20,10 +20,7 @@ func main() {
|
||||
m, err := rpc.NewClient("tcp", "10.20.20.20:1234")
|
||||
fatal(err)
|
||||
|
||||
c := rgbmatrix.NewCanvas(m)
|
||||
defer c.Close()
|
||||
|
||||
tk := &rgbmatrix.ToolKit{c}
|
||||
tk := rgbmatrix.NewToolKit(m)
|
||||
close, err := tk.PlayGIF(f)
|
||||
fatal(err)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user