]> go.fuhry.dev Git - fsnotify.git/commitdiff
Setup CircleCI to test on OS X.
authorNathan Youngman <git@nathany.com>
Sat, 3 Jan 2015 01:38:45 +0000 (18:38 -0700)
committerNathan Youngman <git@nathany.com>
Sat, 3 Jan 2015 23:49:06 +0000 (16:49 -0700)
With help from @z00b.

NotUsed.xcworkspace [new file with mode: 0644]
README.md
circle.yml [new file with mode: 0644]
example_test.go

diff --git a/NotUsed.xcworkspace b/NotUsed.xcworkspace
new file mode 100644 (file)
index 0000000..e69de29
index 39bd8f2dab352e8d0b6486bf5cb2be5b399f23b8..7a0b2473645f3d16ac1c2f8c266671d15246d6fb 100644 (file)
--- 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 (file)
index 0000000..204217f
--- /dev/null
@@ -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
index 9f2c63f475b013a3330fd29b2ca5edce0e2c0cea..3063796602ce417a5135b9fea39af8efc8bb5ce7 100644 (file)
@@ -9,7 +9,7 @@ package fsnotify_test
 import (
        "log"
 
-       "gopkg.in/fsnotify.v1"
+       "github.com/go-fsnotify/fsnotify"
 )
 
 func ExampleNewWatcher() {