fix travis and tests
This commit is contained in:
@@ -5,5 +5,10 @@ go:
|
|||||||
- 1.7
|
- 1.7
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
script:
|
before_install:
|
||||||
- go test -v
|
- 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
|
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
|
```sh
|
||||||
cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/vendor/rpi-rgb-led-matrix/
|
cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/vendor/rpi-rgb-led-matrix/
|
||||||
git submodule update --init
|
git submodule update --init
|
||||||
make install
|
make
|
||||||
cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/
|
cd $GOPATH/src/github.com/mcuadros/go-rpi-rgb-led-matrix/
|
||||||
go install -v ./...
|
go install -v ./...
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ package main
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"image"
|
|
||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
|||||||
@@ -20,10 +20,7 @@ func main() {
|
|||||||
m, err := rpc.NewClient("tcp", "10.20.20.20:1234")
|
m, err := rpc.NewClient("tcp", "10.20.20.20:1234")
|
||||||
fatal(err)
|
fatal(err)
|
||||||
|
|
||||||
c := rgbmatrix.NewCanvas(m)
|
tk := rgbmatrix.NewToolKit(m)
|
||||||
defer c.Close()
|
|
||||||
|
|
||||||
tk := &rgbmatrix.ToolKit{c}
|
|
||||||
close, err := tk.PlayGIF(f)
|
close, err := tk.PlayGIF(f)
|
||||||
fatal(err)
|
fatal(err)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user