Add OS X to Travis build

This commit is contained in:
Dominic Spill
2016-08-18 09:01:04 +01:00
parent 4eeddc0afb
commit 1d122431a0

View File

@ -2,6 +2,12 @@ language: c
cache: apt cache: apt
sudo: false
os:
- linux
- osx
compiler: compiler:
- gcc - gcc
# - clang # - clang
@ -12,6 +18,10 @@ before_script:
# - export PATH=$PWD/gcc-arm-none-eabi-5_3-2016q1/bin:$PATH # - export PATH=$PWD/gcc-arm-none-eabi-5_3-2016q1/bin:$PATH
- export CFLAGS="-Wall -Wextra -Werror" - export CFLAGS="-Wall -Wextra -Werror"
before_install:
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install libusb; fi
script: script:
- mkdir host/build - mkdir host/build
- cd host/build - cd host/build