From 635b8419dfa61c8bac8309e957683b6600cdd611 Mon Sep 17 00:00:00 2001 From: tyru Date: Thu, 21 Dec 2017 07:45:32 +0900 Subject: [PATCH 1/3] [Travis] Introduce macOS test --- .travis.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index d7f1985a..c6d4263b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,8 +1,17 @@ language: go -go: - - 1.9.1 - - tip +matrix: + include: + - os: linux + go: 1.9.1 + - os: linux + go: tip + - os: osx + osx_image: xcode8.3 + go: 1.9.1 + - os: osx + osx_image: xcode8.3 + go: tip script: - go vet -v ./... From d942bfa5337c0d5c9119bcdb67668a363698fcc0 Mon Sep 17 00:00:00 2001 From: tyru Date: Thu, 21 Dec 2017 07:56:37 +0900 Subject: [PATCH 2/3] Use Syscall.Sendfile() only on linux --- fileutil/copyfile_generic.go | 2 +- fileutil/{copyfile_unix.go => copyfile_linux.go} | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) rename fileutil/{copyfile_unix.go => copyfile_linux.go} (95%) diff --git a/fileutil/copyfile_generic.go b/fileutil/copyfile_generic.go index b8968709..41d69ddf 100644 --- a/fileutil/copyfile_generic.go +++ b/fileutil/copyfile_generic.go @@ -1,4 +1,4 @@ -// +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd,!solaris +// +build !linux package fileutil diff --git a/fileutil/copyfile_unix.go b/fileutil/copyfile_linux.go similarity index 95% rename from fileutil/copyfile_unix.go rename to fileutil/copyfile_linux.go index 42f09b2b..b0c99497 100644 --- a/fileutil/copyfile_unix.go +++ b/fileutil/copyfile_linux.go @@ -1,4 +1,4 @@ -// +build darwin dragonfly freebsd linux netbsd openbsd solaris +// +build linux package fileutil From a2d28a5757198f88abba46d014a6c9fedcacde65 Mon Sep 17 00:00:00 2001 From: tyru Date: Fri, 22 Dec 2017 18:01:07 +0900 Subject: [PATCH 3/3] Bump version: v0.2.0 -> v0.2.1 --- cmd/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/version.go b/cmd/version.go index bc2994ab..51c8d0ee 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -7,7 +7,7 @@ import ( "strconv" ) -var voltVersion string = "v0.2.0" +var voltVersion string = "v0.2.1" func Version(args []string) int { fmt.Printf("volt version: %s\n", voltVersion)