test: experimental Travis build settings

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram 2016-10-03 08:25:07 +02:00
parent d8071bddb2
commit 5c6151c989
2 changed files with 15 additions and 1 deletions

View File

@ -28,6 +28,8 @@ before_install:
- go get github.com/axw/gocov/gocov
- go get github.com/mattn/goveralls
- if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi
install:
- make deps
before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start

View File

@ -1,4 +1,4 @@
PACKAGES := gobot gobot/api gobot/platforms/firmata/client gobot/platforms/intel-iot/edison gobot/sysfs $(shell ls ./platforms | sed -e 's/^/gobot\/platforms\//')
PACKAGES := gobot gobot/api gobot/drivers/gpio gobot/drivers/i2c gobot/platforms/firmata/client gobot/platforms/intel-iot/edison gobot/sysfs $(shell ls ./platforms | sed -e 's/^/gobot\/platforms\//')
.PHONY: test cover robeaux examples
test:
@ -38,3 +38,15 @@ examples:
for example in $(EXAMPLES) ; do \
go build -o /tmp/$$example examples/$$example ; \
done ; \
deps:
go get -d -v github.com/bmizerany/pat
go get -d -v github.com/hybridgroup/go-ardrone/client
go get -d -v github.com/currantlabs/gatt
go get -d -v github.com/tarm/goserial
go get -d -v github.com/veandco/go-sdl2/sdl
go get -d -v golang.org/x/net/websocket
go get -d -v github.com/eclipse/paho.mqtt.golang
go get -d -v github.com/nats-io/nats
go get -d -v github.com/lazywei/go-opencv/opencv
go get -d -v github.com/donovanhide/eventsource