Skip to content

Commit

Permalink
Use the Homebrew addon on Travis
Browse files Browse the repository at this point in the history
With the latest release of libusb on Homebrew, a warning when ensuring
it's installed became an error.

- $ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libusb ; fi
- Warning: libusb 1.0.22 is already installed and up-to-date
- To reinstall 1.0.22, run `brew reinstall libusb`

+ $ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libusb ; fi
+ Error: libusb 1.0.22 is already installed
+ To upgrade to 1.0.23, run `brew upgrade libusb`.

Instead of manually dealing with this, delegate to Travis.
  • Loading branch information
jonasmalacofilho authored and audiohacked committed Oct 2, 2019
1 parent 99e1d72 commit d251ecf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ addons:
update: true
packages:
- libusb-1.0-0-dev

before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libusb ; fi
homebrew:
packages:
- libusb
update: true

script:
- make
Expand Down

0 comments on commit d251ecf

Please sign in to comment.