Commit Graph

75 Commits

Author SHA1 Message Date
Thomas Kohler a8f47eaae8
build(go, deps): switch to Go 1.22 and update modules (#1093) 2024-11-01 12:54:20 +01:00
Thomas Kohler d2b01b99e0
examples: fix missing checks of return values (#1060) 2024-02-11 15:34:50 +01:00
Thomas Kohler 3ac63bfd27
ble: introduce in drivers folder (#1057) 2024-02-04 18:50:43 +01:00
Thomas Kohler 030de93a9d
doc(test): use -race for tests by default (#1035) 2023-11-11 20:18:44 +01:00
Thomas Kohler a04ce8a7f2
gpio: fix data race in StepperDriver (#1029) 2023-11-09 20:31:18 +01:00
Thomas Kohler a4a8d1079c
build(style): switch to gofumpt and add linters (#1009) 2023-10-20 20:50:42 +02:00
Ron Evans cd653e9ea1
joystick(core): replace sdl with 0xcafed00d/joystick package (#988) 2023-09-23 12:32:31 +02:00
Thomas Kohler ad12eaca69
system(syscall): switch to x/sys (#963) 2023-06-19 16:06:44 +02:00
Thomas Kohler 1e2a4d8d10
build(linters): list of linter todo's (#962) 2023-06-18 18:10:46 +02:00
Thomas Kohler 865e724af0
Build(v2): revert move to v2 subfolder (#932)
* revert move to v2 subfolder
* fix CI and adjust CHANGELOG
2023-05-29 19:23:28 +02:00
Thomas Kohler d908619462
Build(v2): fix usage by moving code to a v2 subfolder (#927) 2023-05-22 19:35:36 +02:00
Thomas Kohler 6f8cff58cc
Add(build): golangci-lint workflow configuration (#916)
in addition add local linter settings, and adjust docs
2023-05-18 15:47:14 +02:00
Thomas Kohler 34f7e77561
add PCA953x i2c driver 2022-11-13 18:47:19 +01:00
Thomas Kohler 421135fcc2 BUGFIX/IMPROVEMENT: sysfs accesser 2022-11-09 17:30:57 +01:00
Thomas Kohler 45abf11acc BUGFIX: tests with sysfs mocks 2022-10-30 18:47:56 +01:00
Thomas Kohler 65d06fc961 Joystick add Xbox-One controller 2022-10-21 18:57:27 +02:00
Thomas Kohler e7cb5c48ee Makefile: add check for examples, fix failed file, stabilize "every"-test 2022-10-11 08:42:15 +02:00
Thomas Kohler ad59d23e2e introduce generic i2c.Driver with example for digispark
fix missing/wrong entries in README
stabilize test
2022-10-02 14:18:08 +02:00
Thomas Kohler 4a3bfe5042 BUGFIX: Makefile 2022-09-27 19:11:58 +02:00
Thomas Kohler 9e72b20c0a improve examples build 2022-09-27 12:30:59 +02:00
Thomas Kohler 27b9e04e7e fix keyboard tests and exclude opencv 2022-09-25 14:46:02 +02:00
Ron Evans 5faa7516f2 core: updating to use go modules in build and completely remove dep
Signed-off-by: Ron Evans <ron@hybridgroup.com>
2019-10-15 10:26:40 +02:00
Trevor Rosen 591c2909c6
fmt check in script; fail build on gofmt problems 2017-11-09 13:35:02 -06:00
Trevor Rosen 9d5449d173
Tweaking fmt; fixing LD typo 2017-11-09 11:44:19 -06:00
Trevor Rosen dbfcfef627
Simplify fmt check 2017-11-09 11:18:53 -06:00
Trevor Rosen f5b5632690
Further refinement of test.sh
* Update to test on go1.9.2
* Ensure flag from tip doesn't break build
2017-11-06 13:26:08 -06:00
Trevor Rosen 98d68d8549
Propagate test.sh exit status through make target 2017-11-04 22:41:30 -05:00
Trevor Rosen 32543614e3
Fail build if any tests fail
Fixes #464

* Move CI testing into ci/test.sh
* Delegate to script in Makefile
2017-11-04 18:48:11 -05:00
Trevor Rosen d959e53445
dep for building vendor; no vendor in CI tests
Fixes #454
2017-11-04 17:26:01 -05:00
deadprogram 2d28e0a960 ble: use go-ble/ble fork for BLE interactions
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-10-29 13:10:21 +01:00
deadprogram e10f4288b8 ble: use hybridgroup fork of go-ble/ble package until Darwin changes get into upsteam version
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-10-28 19:32:59 +02:00
deadprogram 6bd8280250 Switch to use custom domain for GoCV package
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-10-18 18:13:40 +02:00
deadprogram 31131780d4 opencv: Switchover to use GoCV and OpenCV 3.3
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-10-05 17:05:10 +02:00
Ulises Flynn 94f5ded2d6 First cut of the GoPiGo3 driver, lacking grove peripherals. 2017-08-24 23:38:26 -06:00
deadprogram ca6f7573ac firmata: switch to using go-serial package
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-06-15 14:04:08 +02:00
deadprogram dc799787d6 build: add race test task to Makefile
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-05-03 22:35:52 +02:00
Marc-Antoine Ruel 55eb298a9b Significantly speed up travis and make runs
- Inline ci/travis.sh into .travis.yml
- Use two go test steps instead of once for speed up
- Drop the whitelist and use all the packages as listed from $(go list ./...).
  This removes the need to do bookeeping in both .travis.yml and Makefile during
  refactoring.
- Trimmed the Makefile significantly. Removed "go test -i" as while this is
  extremely helpful when cross compiling, it doesn't help when compiling for the
  host.
- Added deps as a phony target, made this step faster. I'm not sure of the
  usefulness of this step though and would recommend to remove it.
- 'make examples' is currently broken so I didn't add it to .travis.yml.

I experimented a bit on travis with go test on another similar project, timings
for the go test step only:
- Using both -race and -coverprofile with the loop over $(go list ./...) took
  190s
- Using -coverprofile alone with the loop over $(go list ./...) took 10~11s
- Using -race ./... took 5s

It means that using one after the other takes 16~17s while running with both
flags takes 190s. A 91% speedup. Add my previous commit that cut off the test
runtime by half, the total speed will be appreciable.
2017-03-25 07:31:26 -04:00
deadprogram a6936c7dec test: use covermode count for test performance
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-25 14:43:33 +01:00
deadprogram 77c352daf6 test: use covermode atomic for codecov.io
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-25 14:34:03 +01:00
deadprogram 8895f608e6 test: improvements to run tests much faster thanks @maruel
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-21 18:45:42 +01:00
deadprogram 89fffba48b test: correct 'make cover' task to work correctly
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-02-16 17:28:35 +01:00
deadprogram 8ce6b86d2c ble: update travis dependencies for new ble package
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-14 12:26:15 +01:00
deadprogram ecc2a52c04 ble: install deps for currantlabs ble package
Signed-off-by: deadprogram <ron@hybridgroup.com>
2017-01-14 12:26:15 +01:00
Weston Schmidt 0fe9d33729 Add a driver for the sht3x chip.
Signed-off-by: Weston Schmidt <weston_schmidt@alumni.purdue.edu>
2017-01-03 01:21:09 -08:00
deadprogram c186638973 aio: separate analog drivers from gpio drivers
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-20 13:25:22 +01:00
deadprogram 8510bd96d3 bb8: add initial support for Sphero BB-8 platform
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-19 16:21:47 +01:00
deadprogram c258b1612b core: correct Makefile import path
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 13:41:35 +01:00
deadprogram 953c3254e7 core: use canonical import domain of gobot.io for all code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-12-08 13:24:03 +01:00
deadprogram 9c6d0ba381 core: install hashicorp/go-multierror for Travis builds
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-11-07 21:29:52 +01:00
deadprogram 083eb82294 test: Run Travis tests on Intel Joule
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-03 19:07:15 +02:00