From 21c85cec138573489d869cec6dd372a91d69154c Mon Sep 17 00:00:00 2001 From: andig Date: Sat, 16 May 2020 13:43:10 +0200 Subject: [PATCH] Don't add btmgmt binary on CI (#161) --- charger/nrgble_linux.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/charger/nrgble_linux.go b/charger/nrgble_linux.go index 9cd7fc550..7e4f89812 100644 --- a/charger/nrgble_linux.go +++ b/charger/nrgble_linux.go @@ -54,7 +54,8 @@ func NewNRGKickBLE(device, macaddress string, pin int) *NRGKickBLE { // set LE mode btmgmt := hw.NewBtMgmt(device) - if len(os.Getenv("DOCKER")) > 0 { + // don't add Docker binary on CI + if len(os.Getenv("DOCKER")) > 0 && os.Getenv("CI") == "" { btmgmt.BinPath = "./bin/docker-btmgmt" }