Don't add btmgmt binary on CI (#161)

This commit is contained in:
andig 2020-05-16 13:43:10 +02:00 • committed by GitHub
parent 23f51bc56d
commit 21c85cec13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"
}