osquery-1/.travis.yml
Filipe Manco 0c0ac7c12e Enable TravisCI for macOS (#5352)
Summary:
Pull Request resolved: https://github.com/facebook/osquery/pull/5352

First step to enable TravisCI.

Reviewed By: akindyakov

Differential Revision: D13665375

fbshipit-source-id: 162ffe6bcfa531152f6efc06a9fdd202c6159517
2019-01-15 06:12:25 -08:00

38 lines
896 B
YAML

language: cpp
os-common:
macos: &os-common-macos
addons:
homebrew:
taps:
- facebook/fb
- homebrew/cask-versions
casks:
- java8
packages:
- buck
- watchman
- python
- python@2
before_script:
- export JAVA_HOME="$(/usr/libexec/java_home -v 1.8)"
cache:
directories:
- buck-out
matrix:
include:
- os: osx
osx_image: xcode10.1
env: OSQUERY_PLATFORM="macos-x86_64" OSQUERY_BUILD_MODE="release"
<<: *os-common-macos
- os: osx
osx_image: xcode10.1
env: OSQUERY_PLATFORM="macos-x86_64" OSQUERY_BUILD_MODE="debug"
<<: *os-common-macos
script:
- buck build @mode/${OSQUERY_PLATFORM}/${OSQUERY_BUILD_MODE} -c color.ui=never osquery:osqueryd
- buck test @mode/${OSQUERY_PLATFORM}/${OSQUERY_BUILD_MODE} -c color.ui=never osquery/...