os: osx
# language: objective-c

# http://docs.travis-ci.com/user/environment-variables/#Global-Variables
env:
  global:
    - GOPATH=/Users/travis/go
    - PATH=/Users/travis/go/bin:$PATH
  # matrix:
  #   - USE_NETWORK=true
  #   - USE_NETWORK=false  - 
before_install:
  - brew tap zchee/libguestfs
  - brew update
  - brew outdated  go || brew upgrade go
  - brew install libguestfs --with-go --devel --env=std
  - go get -d github.com/zchee/xhyve-bindings
  - go get -d github.com/zchee/docker-machine-xhyve
script:
  - cd $GOPATH/src/github.com/zchee/xhyve-bindings && make install
  - cd $GOPATH/src/github.com/zchee/docker-machine-xhyve && make install

os: osx
# language: objective-c

# http://docs.travis-ci.com/user/environment-variables/#Global-Variables
env:
  global:
    - GOPATH=/Users/travis/go
    - PATH=${GOPATH}/bin:$PATH
    - GO15VENDOREXPERIMENT=1
    - GOARCH=amd64
    - GOMAXPROCS=8
    - GOOS=darwin
    - HOMEBREW_MAKE_JOBS=9 
  # matrix:
cache:
  directories:
  - /usr/local
before_install:
  - brew tap zchee/libguestfs
  - brew update
  - brew outdated  go || brew upgrade go
  - brew install libguestfs --with-go --devel --env=std
  - go get -d github.com/zchee/docker-machine-xhyve
script:
  - uname -asnrvmpio
  - cd $GOPATH/src/github.com/zchee/docker-machine-xhyve && CGO_CFLAGS="-DGUESTFS_PRIVATE=1 -I/usr/local/include" CGO_LDFLAGS="-L/usr/local/lib -lguestfs" make install

Add global env & Caching brew dir
Add global env & Caching brew dir

Go related env
Valid brew cache?
brew make jobs 9

Signed-off-by: Koichi Shiraishi <2e5bdfebde234ed3509bcfc18121c70b6631e207@gmail.com>
