From fe7f3a55dcaa3a8f3d5ff6a85b16b62b7a2c446c Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Sat, 13 May 2017 14:55:05 +1000 Subject: [PATCH] .travis.yml: enable macOS builds too. --- .travis.yml | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4322809..c783a50 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,16 +1,28 @@ # 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 +matrix: + include: + - os: linux + 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 + sudo: required + - os: osx + language: go + go: 1.8.1 # Install fuse before installing our code. before_install: - - sudo apt-get install -qq fuse + # 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; fi + - if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew cask install osxfuse; fi