From: Nathan Youngman Date: Sat, 3 Jan 2015 01:38:45 +0000 (-0700) Subject: Setup CircleCI to test on OS X. X-Git-Tag: v1.7.2~241^2 X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=729bfc09e5f7104bf79759d2b305ddd06f98950f;p=fsnotify.git Setup CircleCI to test on OS X. With help from @z00b. --- diff --git a/NotUsed.xcworkspace b/NotUsed.xcworkspace new file mode 100644 index 0000000..e69de29 diff --git a/README.md b/README.md index 39bd8f2..7a0b247 100644 --- a/README.md +++ b/README.md @@ -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)| diff --git a/circle.yml b/circle.yml new file mode 100644 index 0000000..204217f --- /dev/null +++ b/circle.yml @@ -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 diff --git a/example_test.go b/example_test.go index 9f2c63f..3063796 100644 --- a/example_test.go +++ b/example_test.go @@ -9,7 +9,7 @@ package fsnotify_test import ( "log" - "gopkg.in/fsnotify.v1" + "github.com/go-fsnotify/fsnotify" ) func ExampleNewWatcher() {