From c8a4d437a01802fc33bde6883957456ced324436 Mon Sep 17 00:00:00 2001
From: Nick Craig-Wood <nick@craig-wood.com>
Date: Tue, 14 Nov 2017 12:53:46 +0000
Subject: [PATCH] Make travis test mount and cmount - fixes #2100

Previously FUSE wasn't found in the container so these tests weren't
run.  Move to VM based testing and install FUSE dependencies.
---
 .travis.yml | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/.travis.yml b/.travis.yml
index aabacdb82..0cea9ead1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
 language: go
-sudo: false
-osx_image: xcode7.3
+sudo: required
+dist: trusty
 os:
 - linux
 go:
@@ -10,6 +10,9 @@ go:
 - 1.9.3
 - "1.10"
 - tip
+before_install:
+- if [[ $TRAVIS_OS_NAME == linux ]]; then sudo modprobe fuse ; sudo chmod 666 /dev/fuse ; sudo chown root:$USER /etc/fuse.conf ; fi
+- if [[ $TRAVIS_OS_NAME == osx ]]; then brew update && brew tap caskroom/cask && brew cask install osxfuse ; fi
 install:
 - git fetch --unshallow --tags
 - make vars
@@ -30,6 +33,7 @@ addons:
     - fuse
     - libfuse-dev
     - rpm
+    - pkg-config
 matrix:
   allow_failures:
   - go: tip
@@ -44,4 +48,4 @@ deploy:
   on:
     all_branches: true
     go: "1.10"
-    condition: "`uname` == 'Linux' && $TRAVIS_PULL_REQUEST == 'false'"
+    condition: $TRAVIS_OS_NAME == linux && $TRAVIS_PULL_REQUEST == false