Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
language: go

gobuild_args: -tags noceph

go:
- 1.5
- 1.6
- tip

script:
- go test -tags noceph -v ./...
- go test -v ./...

install:
- go get -t -tags noceph ./...
- go get -t ./...
16 changes: 10 additions & 6 deletions nbd/rbd.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// +build linux,!noceph
// +build ceph

// The above build tag specifies this file is only to be built on linux (because
// building librados is difficult elsewhere). If you want it to build elsewhere,
// add your OS as appropriately. If you are having difficulty building on linux
// or want to build without librados present, then use
// go build -tags 'noceph'
// The above build tag specifies this file is only to be built
// when the `ceph` tag is explicitly specified, as follows:
// go build -tags 'ceph'
//
// NOTE: at the time of writing it is difficult to build librados
// on platforms other than Linux. In case you want to build this file,
// (and thus use go-ceph) it is recommended to do this on Linux.
// Other platforms may work (with some work) but is not guaranteed.
// You have been warned.

package nbd

Expand Down