# Cf. http://docs.travis-ci.com/user/getting-started/
# Cf. http://docs.travis-ci.com/user/languages/go/

language: go

go: 1.8.1

# Use the virtualized Trusty beta Travis is running in order to get support for
# installing fuse.
#
# Cf. Personal communication from support@travis-ci.com.
dist: trusty

# Install fuse before installing our code.
before_install:
  - sudo apt-get install -qq fuse

# Cf. http://docs.travis-ci.com/user/getting-started/
# Cf. http://docs.travis-ci.com/user/languages/go/

matrix:
  include:
    - os: linux
      dist: trusty
      sudo: required
      language: go
      go: 1.8.1
    - os: osx
      language: go
      go: 1.8.1

# Install fuse before installing our code.
# Install fuse before installing our code.
before_install:
  # For linux: install fuse.
  - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
      sudo apt-get install -qq fuse;
    fi

  # For macOS: update homebrew and then install osxfuse.
  - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
      brew update;
      brew cask install osxfuse;
    fi

Test OSX as well (only 2 jobs)
Test OSX as well (only 2 jobs)
