travis: rewrite the file; upgrade to Go 1.14.x

- Remove deprecated sudo:false
- Add missing os:linux and update to dist:bionic
- Update to go1.14.x
- Convert from matrix to jobs
- Reformat to try to make it slightly more readable

Fix a go formatting that crept in.
pull/1/head
Marc-Antoine Ruel 6 years ago
parent 816785ac40
commit 6368ca5314

@ -124,7 +124,7 @@ func (d *Dev) update() error {
func (d *Dev) updateStates() error {
mask := d.stateArrayToInt()
cmd := [...]byte{cmdEnableLeds, byte(mask & 0x3F), byte((mask >> 6) & 0x3F), byte((mask >> 12) & 0X3F)}
cmd := [...]byte{cmdEnableLeds, byte(mask & 0x3F), byte((mask >> 6) & 0x3F), byte((mask >> 12) & 0x3F)}
if _, err := d.i2c.Write(cmd[:]); err != nil {
return err
}

Loading…
Cancel
Save