Move to brew bundle
authorStephen <stephen@egroat.com>
Fri, 30 Mar 2018 14:09:09 +0000 (07:09 -0700)
committerNathan Hjelm <hjelmn@cs.unm.edu>
Mon, 9 Jul 2018 20:30:55 +0000 (14:30 -0600)
improved dependency management with brew bundle

.travis.yml
Brewfile [new file with mode: 0644]
libusb/version_nano.h

index 6beda37..aaa8ece 100644 (file)
@@ -41,9 +41,8 @@ addons:
             - ubuntu-toolchain-r-test
 
 before_install:
-    # brew upgrade sets the return code to 1 if the latest version is already installed. the true command
-    # is used to reset the return code to 0.
-    - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; brew upgrade automake libtool ; true; fi
+    # brew bundle installs or upgrades packages in Brewfile
+    - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update && brew bundle && brew bundle cleanup --force; fi
 
 script:
     - ./autogen.sh && make clean && make
diff --git a/Brewfile b/Brewfile
new file mode 100644 (file)
index 0000000..c028148
--- /dev/null
+++ b/Brewfile
@@ -0,0 +1,4 @@
+brew 'automake'
+brew 'libtool'
+brew 'autoconf'
+brew 'm4'
index 90a782a..a630c66 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11312
+#define LIBUSB_NANO 11314