Skip to content

Commit

Permalink
Add osx fuse support for travis-ci
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Andres Buritica <[email protected]>
  • Loading branch information
thelinuxkid committed Dec 23, 2015
1 parent a41df09 commit 6ae80a8
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dist: trusty

os:
- linux
# - osx TODO re-enable osx support
- osx

go_import_path: github.com/ipfs/go-ipfs

Expand All @@ -14,10 +14,8 @@ go:
- 1.5.2

before_install:
- sudo apt-get install -qq pkg-config fuse
- sudo modprobe fuse
- sudo chmod 666 /dev/fuse
- sudo chown root:$USER /etc/fuse.conf
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'linux' ]; then . ./.travis/before_install-linux.sh; fi"
- "if [ ${TRAVIS_OS_NAME:-'linux'} = 'osx' ]; then . ./.travis/before_install-osx.sh; fi"

env:
- TEST_VERBOSE=1 TEST_NO_IPV6=1 TEST_SUITE=test_go_expensive
Expand Down
7 changes: 7 additions & 0 deletions .travis/before_install-linux.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -ev

sudo apt-get install -qq pkg-config fuse
sudo modprobe fuse
sudo chmod 666 /dev/fuse
sudo chown root:$USER /etc/fuse.conf
6 changes: 6 additions & 0 deletions .travis/before_install-osx.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash
set -ev

brew update
brew tap caskroom/cask
brew cask install osxfuse

0 comments on commit 6ae80a8

Please sign in to comment.