This is an automated email from the ASF dual-hosted git repository.
wesm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 0d30212 ARROW-4901: [Go] add AppVeyor CI
0d30212 is described below
commit 0d302125abb4b514dba210f496c574a77ce4cd1d
Author: Sebastien Binet <[email protected]>
AuthorDate: Fri Mar 15 09:04:27 2019 -0500
ARROW-4901: [Go] add AppVeyor CI
Author: Sebastien Binet <[email protected]>
Closes #3909 from sbinet/appveyor-go and squashes the following commits:
850229b36 <Sebastien Binet> : add AppVeyor CI
---
appveyor.yml | 11 +++++++++-
ci/appveyor-build.bat | 5 +++++
ci/appveyor-filter-changes.bat | 7 +++++++
ci/appveyor-install.bat | 4 ++++
ci/{appveyor-build.bat => go-build-main.bat} | 30 ++++++----------------------
5 files changed, 32 insertions(+), 25 deletions(-)
diff --git a/appveyor.yml b/appveyor.yml
index 5d7e20b..ea78db0 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -19,7 +19,7 @@
os: Visual Studio 2015
only_commits:
- # Skip commits not related to Python, C++, C#, or Rust
+ # Skip commits not related to Python, C++, C#, Go or Rust
files:
- appveyor.yml
- c_glib/
@@ -27,6 +27,7 @@ only_commits:
- cpp/
- csharp/
- format/
+ - go/
- python/
- rust/
@@ -77,6 +78,14 @@ environment:
- JOB: "C#"
APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017
USE_CLCACHE: false
+ - JOB: "Go"
+ TARGET: x86_64-pc-windows-msvc
+ GOROOT: 'c:\go111'
+ GOPATH: c:\gopath
+ GO111MODULE: on
+ GOTOOLDIR: '%GOROOT%\pkg\tool\windows_amd64'
+ PATH: '%GOPATH%\bin;%GOROOT%\bin;%PATH%'
+ USE_CLCACHE: false
MSVC_DEFAULT_OPTIONS: ON
APPVEYOR_SAVE_CACHE_ON_ERROR: true
diff --git a/ci/appveyor-build.bat b/ci/appveyor-build.bat
index 26445e2..09d4ac1 100644
--- a/ci/appveyor-build.bat
+++ b/ci/appveyor-build.bat
@@ -19,6 +19,7 @@
IF /i "%JOB%" == "C#" goto csharp
IF /i "%JOB%" == "rust" goto rust
+IF /i "%JOB%" == "go" goto golang
@rem All other builds are C++ builds
goto cpp
@@ -41,4 +42,8 @@ goto scriptexit
call ci\rust-build-main.bat
goto scriptexit
+:golang
+call ci\go-build-main.bat
+goto scriptexit
+
:scriptexit
diff --git a/ci/appveyor-filter-changes.bat b/ci/appveyor-filter-changes.bat
index e506e11..1e82ecd 100644
--- a/ci/appveyor-filter-changes.bat
+++ b/ci/appveyor-filter-changes.bat
@@ -36,6 +36,13 @@ if "%JOB%" == "Rust" (
echo ===
appveyor exit
)
+) else if "%JOB%" == "Go" (
+ if "%ARROW_CI_GO_AFFECTED%" == "0" (
+ echo ===
+ echo === No Go changes, exiting job
+ echo ===
+ appveyor exit
+ )
) else (
if "%ARROW_CI_PYTHON_AFFECTED%" == "0" (
echo ===
diff --git a/ci/appveyor-install.bat b/ci/appveyor-install.bat
index 78269d0..a622c79 100644
--- a/ci/appveyor-install.bat
+++ b/ci/appveyor-install.bat
@@ -20,6 +20,7 @@
IF /i "%JOB%" == "C#" goto csharp
IF "%JOB:~,5%" == "MinGW" goto mingw
IF /i "%JOB%" == "rust" goto rust
+IF /i "%JOB%" == "go" goto golang
@rem all else are C++
goto cpp
@@ -45,6 +46,9 @@ goto scriptexit
call ci\appveyor-cpp-setup-mingw.bat
goto scriptexit
+:golang
+goto scriptexit
+
:csharp
:scriptexit
diff --git a/ci/appveyor-build.bat b/ci/go-build-main.bat
similarity index 66%
copy from ci/appveyor-build.bat
copy to ci/go-build-main.bat
index 26445e2..4b4dc63 100644
--- a/ci/appveyor-build.bat
+++ b/ci/go-build-main.bat
@@ -15,30 +15,12 @@
@rem specific language governing permissions and limitations
@rem under the License.
-@echo on
+@rem The "main" Go build script for Windows CI
-IF /i "%JOB%" == "C#" goto csharp
-IF /i "%JOB%" == "rust" goto rust
+pushd go\arrow
-@rem All other builds are C++ builds
-goto cpp
+%GOROOT%\bin\go version
+%GOROOT%\bin\go get -v ./... || exit /B
+%GOROOT%\bin\go test -race ./... || exit /B
-:cpp
-git config core.symlinks true
-git reset --hard
-if "%JOB:~,5%" == "MinGW" (
- call ci\appveyor-cpp-build-mingw.bat
-) else (
- call ci\appveyor-cpp-build.bat
-)
-goto scriptexit
-
-:csharp
-call ci\appveyor-csharp-build.bat
-goto scriptexit
-
-:rust
-call ci\rust-build-main.bat
-goto scriptexit
-
-:scriptexit
+popd