Skip to content

Commit

Permalink
Merge pull request howeyc#57 from go-fsnotify/ci
Browse files Browse the repository at this point in the history
setup CircleCI to test on OS X
  • Loading branch information
nathany committed Jan 4, 2015
2 parents f576da4 + 729bfc0 commit 8f4d598
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 2 deletions.
Empty file added NotUsed.xcworkspace
Empty file.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Cross platform: Windows, Linux, BSD and OS X.
|Adapter |OS |Status |
|----------|----------|----------|
|inotify |Linux, Android\*|Supported [![Build Status](https://travis-ci.org/go-fsnotify/fsnotify.svg?branch=master)](https://travis-ci.org/go-fsnotify/fsnotify)|
|kqueue |BSD, OS X, iOS\*|Supported|
|kqueue |BSD, OS X, iOS\*|Supported [![Circle CI](https://circleci.com/gh/go-fsnotify/fsnotify.svg?style=svg)](https://circleci.com/gh/go-fsnotify/fsnotify)|
|ReadDirectoryChangesW|Windows|Supported [![Build status](https://ci.appveyor.com/api/projects/status/ivwjubaih4r0udeh/branch/master?svg=true)](https://ci.appveyor.com/project/NathanYoungman/fsnotify/branch/master)|
|FSEvents |OS X |[Planned](https://github.com/go-fsnotify/fsnotify/issues/11)|
|FEN |Solaris 11 |[Planned](https://github.com/go-fsnotify/fsnotify/issues/12)|
Expand Down
26 changes: 26 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
## OS X build (CircleCI iOS beta)

# Pretend like it's an Xcode project, at least to get it running.
machine:
environment:
XCODE_WORKSPACE: NotUsed.xcworkspace
XCODE_SCHEME: NotUsed
# This is where the go project is actually checked out to:
CIRCLE_BUILD_DIR: $HOME/.go_project/src/github.com/go-fsnotify/fsnotify

dependencies:
pre:
- brew upgrade go

test:
override:
- go test ./...

# Idealized future config, eventually with cross-platform build matrix :-)

# machine:
# go:
# version: 1.4
# os:
# - osx
# - linux
2 changes: 1 addition & 1 deletion example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ package fsnotify_test
import (
"log"

"gopkg.in/fsnotify.v1"
"github.com/go-fsnotify/fsnotify"
)

func ExampleNewWatcher() {
Expand Down

0 comments on commit 8f4d598

Please sign in to comment.