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.
This commit is contained in:
Nick Craig-Wood 2017-11-14 12:53:46 +00:00
parent 09c14af6d1
commit c8a4d437a0

View File

@ -1,6 +1,6 @@
language: go language: go
sudo: false sudo: required
osx_image: xcode7.3 dist: trusty
os: os:
- linux - linux
go: go:
@ -10,6 +10,9 @@ go:
- 1.9.3 - 1.9.3
- "1.10" - "1.10"
- tip - 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: install:
- git fetch --unshallow --tags - git fetch --unshallow --tags
- make vars - make vars
@ -30,6 +33,7 @@ addons:
- fuse - fuse
- libfuse-dev - libfuse-dev
- rpm - rpm
- pkg-config
matrix: matrix:
allow_failures: allow_failures:
- go: tip - go: tip
@ -44,4 +48,4 @@ deploy:
on: on:
all_branches: true all_branches: true
go: "1.10" go: "1.10"
condition: "`uname` == 'Linux' && $TRAVIS_PULL_REQUEST == 'false'" condition: $TRAVIS_OS_NAME == linux && $TRAVIS_PULL_REQUEST == false