Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add Solaris FEN support #263

Closed
wants to merge 9 commits into from
Closed
2 changes: 2 additions & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ Daniel Wagner-Hall <dawagner@gmail.com>
Dave Cheney <dave@cheney.net>
Evan Phoenix <evan@fallingsnow.net>
Francisco Souza <f@souza.cc>
Gereon Frey <gereon.frey@gmail.com>
Hari haran <hariharan.uno@gmail.com>
Isaac Davis <isaac.davis@joyent.com>
John C Barstow
Kelvin Fo <vmirage@gmail.com>
Ken-ichirou MATSUZAWA <chamas@h4.dion.ne.jp>
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v1.5.0 / 2018-08-28

* Solaris: add support for File Event Notifications (fen) [#12](https://github.com/fsnotify/fsnotify/issues/12)

## v1.4.7 / 2018-01-09

* BSD/macOS: Fix possible deadlock on closing the watcher on kqueue (thanks @nhooyr and @glycerine)
Expand Down
117 changes: 117 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
pipeline {
agent any
environment {
SRC_DIR = "${env.WORKSPACE}"
}
stages {
stage('Build') {
parallel {
stage('1.11') {
environment {
GOVERSION = '1.11.1'
GOROOT = "/opt/go/${env.GOVERSION}"
GOPATH = "/home/jenkins/fsnotify-ws/${env.GIT_BRANCH}/go${env.GOVERSION}"
GO = "${env.GOROOT}/bin/go"
GOFMT = "${env.GOROOT}/bin/gofmt"
GOLINT = "${env.GOPATH}/bin/golint"
}
steps {
ws("${env.GOPATH}") {
sh "mkdir -p src/github.com/fsnotify/fsnotify"
sh "rsync -az ${SRC_DIR}/ src/github.com/fsnotify/fsnotify/"
dir("src/github.com/fsnotify/fsnotify") {
sh "${GO} version"
sh "${GO} env"
sh "${GO} get -t -v ./..."
sh "${GO} get -u golang.org/x/lint/golint"
sh "${GO} test ./..."
sh "test -z \"\$(${GOFMT} -s -l -w . | tee /dev/stderr)\""
sh "test -z \"\$(${GOLINT} ./... | tee /dev/stderr)\""
sh "${GO} vet ./..."
}
}
}
}
stage('1.10') {
environment {
GOVERSION = '1.10.4'
GOROOT = "/opt/go/${env.GOVERSION}"
GOPATH = "/home/jenkins/fsnotify-ws/${env.GIT_BRANCH}/go${env.GOVERSION}"
GO = "${env.GOROOT}/bin/go"
GOFMT = "${env.GOROOT}/bin/gofmt"
GOLINT = "${env.GOPATH}/bin/golint"
}
steps {
ws("${env.GOPATH}") {
sh "mkdir -p src/github.com/fsnotify/fsnotify"
sh "rsync -az ${SRC_DIR}/ src/github.com/fsnotify/fsnotify/"
dir("src/github.com/fsnotify/fsnotify") {
sh "${GO} version"
sh "${GO} env"
sh "${GO} get -t -v ./..."
sh "${GO} get -u golang.org/x/lint/golint"
sh "${GO} test ./..."
sh "test -z \"\$(${GOFMT} -s -l -w . | tee /dev/stderr)\""
sh "test -z \"\$(${GOLINT} ./... | tee /dev/stderr)\""
sh "${GO} vet ./..."
}
}
}
}
stage('1.9') {
environment {
GOVERSION = '1.9.7'
GOROOT = "/opt/go/${env.GOVERSION}"
GOPATH = "/home/jenkins/fsnotify-ws/${env.GIT_BRANCH}/go${env.GOVERSION}"
GO = "${env.GOROOT}/bin/go"
GOFMT = "${env.GOROOT}/bin/gofmt"
GOLINT = "${env.GOPATH}/bin/golint"
}
steps {
ws("${env.GOPATH}") {
sh "mkdir -p src/github.com/fsnotify/fsnotify"
sh "rsync -az ${SRC_DIR}/ src/github.com/fsnotify/fsnotify/"
dir("src/github.com/fsnotify/fsnotify") {
sh "${GO} version"
sh "${GO} env"
sh "${GO} get -t -v ./..."
sh "${GO} get -u golang.org/x/lint/golint"
sh "${GO} test ./..."
sh "test -z \"\$(${GOFMT} -s -l -w . | tee /dev/stderr)\""
sh "test -z \"\$(${GOLINT} ./... | tee /dev/stderr)\""
sh "${GO} vet ./..."
}
}
}
}
stage('1.8') {
environment {
GOVERSION = '1.8.7'
GOROOT = "/opt/go/${env.GOVERSION}"
GOPATH = "/home/jenkins/fsnotify-ws/${env.GIT_BRANCH}/go${env.GOVERSION}"
GO = "${env.GOROOT}/bin/go"
GOFMT = "${env.GOROOT}/bin/gofmt"
GOLINT = "${env.GOPATH}/bin/golint"
}
steps {
ws("${env.GOPATH}") {
sh "mkdir -p src/github.com/fsnotify/fsnotify"
sh "rsync -az ${SRC_DIR}/ src/github.com/fsnotify/fsnotify/"
dir("src/github.com/fsnotify/fsnotify") {
sh "${GO} version"
sh "${GO} env"
sh "${GO} get -t -v ./..."
sh "${GO} get -u golang.org/x/lint/golint"
sh "${GO} test ./..."
sh "test -z \"\$(${GOFMT} -s -l -w . | tee /dev/stderr)\""
sh "test -z \"\$(${GOLINT} ./... | tee /dev/stderr)\""
sh "${GO} vet ./..."
}
}
}
}
}
}
}
}