1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-06-24 14:08:13 +08:00

Merge pull request #941 from jbenet/travis-multi-os

travis: enable osx
This commit is contained in:
Juan Batiz-Benet
2015-03-18 02:25:44 -07:00
7 changed files with 32 additions and 14 deletions

View File

@ -1,3 +1,7 @@
os:
- linux
- osx
language: go
go:

View File

@ -1,5 +1,15 @@
ifeq ($(TEST_NO_FUSE),1)
go_test=go test -tags nofuse
else
go_test=go test
endif
all:
# no-op
# no-op. try:
# make install
# make test
godep:
go get github.com/tools/godep
@ -32,13 +42,13 @@ test_3node:
cd test/3nodetest && make
test_go_short:
go test -test.short ./...
$(go_test) -test.short ./...
test_go_expensive:
go test ./...
$(go_test) ./...
test_go_race:
go test ./... -race
$(go_test) ./... -race
test_sharness_short:
cd test/sharness/ && make

View File

@ -0,0 +1,7 @@
// Package incfusever is only here to prevent go src tools (like godep)
// from thinking fuseversion is not a required package. Though we do not
// actually use github.com/jbenet/go-fuse-version as a library, we
// _may_ need its binary. We avoid it as much as possible as compiling
// it _requires_ fuse headers. Users must be able to install go-ipfs
// without also installing fuse.
package incfusever

View File

@ -1,9 +1,5 @@
// Package incfusever is only here to prevent go src tools (like godep)
// from thinking fuseversion is not a required package. Though we do not
// actually use github.com/jbenet/go-fuse-version as a library, we
// _may_ need its binary. We avoid it as much as possible as compiling
// it _requires_ fuse headers. Users must be able to install go-ipfs
// without also installing fuse.
// +build !nofuse
package incfusever
import (

3
fuse/readonly/doc.go Normal file
View File

@ -0,0 +1,3 @@
// package fuse/readonly implements a fuse filesystem to access files
// stored inside of ipfs.
package readonly

View File

@ -1,8 +1,6 @@
// +build linux darwin freebsd
// +build !nofuse
// package fuse/readonly implements a fuse filesystem to access files
// stored inside of ipfs.
package readonly
import (

View File

@ -25,11 +25,11 @@ fig up --no-color | tee build/fig.log
# save the ipfs logs for inspection
echo "make save_logs"
make save_logs
make save_logs || true # don't fail
# save the ipfs logs for inspection
echo "make save_profiling_data"
make save_profiling_data
make save_profiling_data || true # don't fail
# fig up won't report the error using an error code, so we grep the
# fig.log file to find out whether the call succeeded