Merge pull request #234 from restic/osxfuse

osxfuse for travis on darwin
This commit is contained in:
Florian Weingarten 2015-07-19 01:05:11 +02:00
commit b6b1f41f2e
1 changed files with 3 additions and 0 deletions

View File

@ -29,6 +29,9 @@ install:
- go get github.com/mitchellh/gox
- go version | grep -q "go1\.3" && export GOX_ARCH="386 amd64" || true
- go version | grep -q "darwin" && export GOX_OS="darwin" || true
- uname -s | grep -qi darwin && brew install osxfuse || true
- uname -s | grep -qi darwin && sudo /bin/cp -RfX /usr/local/opt/osxfuse/Library/Filesystems/osxfusefs.fs /Library/Filesystems/ || true
- uname -s | grep -qi darwin && sudo chmod +s /Library/Filesystems/osxfusefs.fs/Support/load_osxfusefs || true
- echo "cross-compile for \"$GOX_OS\" on \"$GOX_ARCH\""
- gox -build-toolchain -os "$GOX_OS" -arch "$GOX_ARCH"