瀏覽代碼

travis: add Mac OS X build

Philipp Zabel 7 年之前
父節點
當前提交
74f6bba26e
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      .travis.yml

+ 7 - 3
.travis.yml

@@ -1,7 +1,10 @@
 # This is the project file for the automated build system travis (travis-ci.com).
-sudo: false
-
-dist: trusty
+matrix:
+  include:
+    - os: linux
+      sudo: false
+      dist: trusty
+    - os: osx
 
 language: c
 
@@ -13,6 +16,7 @@ addons:
       - libhidapi-dev
 
 before_install:
+  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install hidapi; fi
   - ./autogen.sh
 
 install: true # skip install step