build: add joystick tests
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
parent
5647b8084c
commit
9db41afde4
|
@ -38,10 +38,10 @@ jobs:
|
||||||
name: Debug version
|
name: Debug version
|
||||||
command: go version
|
command: go version
|
||||||
- run:
|
- run:
|
||||||
# digispark needs libusb, joystick needs sdl2, opencv needs opencv
|
# digispark needs libusb, opencv needs opencv
|
||||||
name: Platform tests (except digispark, joystick, opencv)
|
name: Platform tests (except digispark and opencv)
|
||||||
command: |
|
command: |
|
||||||
go test -v $(go list ./platforms/... | grep -v platforms/digispark | grep -v platforms/joystick | grep -v platforms/opencv)
|
go test -v $(go list ./platforms/... | grep -v platforms/digispark | grep -v platforms/opencv)
|
||||||
|
|
||||||
"check_examples":
|
"check_examples":
|
||||||
docker:
|
docker:
|
||||||
|
@ -52,11 +52,11 @@ jobs:
|
||||||
name: Debug version
|
name: Debug version
|
||||||
command: go version
|
command: go version
|
||||||
- run:
|
- run:
|
||||||
# digispark needs libusb, joystick needs sdl2, opencv needs opencv
|
# digispark needs libusb, opencv needs opencv
|
||||||
name: Check examples (except digispark, joystick, opencv)
|
name: Check examples (except digispark, opencv)
|
||||||
command: |
|
command: |
|
||||||
ALL=$(grep -l -r --include "*.go" 'build example' ./)
|
ALL=$(grep -l -r --include "*.go" 'build example' ./)
|
||||||
SOME=$(grep -L 'digispark' $(grep -L 'joystick' $(grep -L 'gocv' ${ALL})))
|
SOME=$(grep -L 'digispark' $(grep -L 'gocv' ${ALL}))
|
||||||
for e in ${SOME} ; do go vet "${e}" ; done
|
for e in ${SOME} ; do go vet "${e}" ; done
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
|
|
Loading…
Reference in New Issue