Apache DataFusion SQL Query Engine
ARROW-4901: [Go] add AppVeyor CI
Sebastien Binetcab25fc3a693
diff --git a/appveyor.yml b/appveyor.ymlindex 5d7e20bdee..ea78db0940 100644--- a/appveyor.yml+++ b/appveyor.yml@@ -19,7 +19,7 @@os: Visual Studio 2015only_commits:- # Skip commits not related to Python, C++, C#, or Rust+ # Skip commits not related to Python, C++, C#, Go or Rustfiles:- 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 2017USE_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: falseMSVC_DEFAULT_OPTIONS: ONAPPVEYOR_SAVE_CACHE_ON_ERROR: truediff --git a/ci/appveyor-build.bat b/ci/appveyor-build.batindex 26445e2149..09d4ac1f24 100644--- a/ci/appveyor-build.bat+++ b/ci/appveyor-build.bat@@ -19,6 +19,7 @@IF /i "%JOB%" == "C#" goto csharpIF /i "%JOB%" == "rust" goto rust+IF /i "%JOB%" == "go" goto golang@rem All other builds are C++ buildsgoto cpp@@ -41,4 +42,8 @@ goto scriptexitcall ci\rust-build-main.batgoto scriptexit+:golang+call ci\go-build-main.bat+goto scriptexit+:scriptexitdiff --git a/ci/appveyor-filter-changes.bat b/ci/appveyor-filter-changes.batindex e506e11174..1e82ecd5f2 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.batindex 78269d0db4..a622c799e6 100644--- a/ci/appveyor-install.bat+++ b/ci/appveyor-install.bat@@ -20,6 +20,7 @@IF /i "%JOB%" == "C#" goto csharpIF "%JOB:~,5%" == "MinGW" goto mingwIF /i "%JOB%" == "rust" goto rust+IF /i "%JOB%" == "go" goto golang@rem all else are C++goto cpp@@ -45,6 +46,9 @@ goto scriptexitcall ci\appveyor-cpp-setup-mingw.batgoto scriptexit+:golang+goto scriptexit+:csharp:scriptexitdiff --git a/ci/go-build-main.bat b/ci/go-build-main.batnew file mode 100644index 0000000000..4b4dc63a77--- /dev/null+++ b/ci/go-build-main.bat@@ -0,0 +1,26 @@+@rem Licensed to the Apache Software Foundation (ASF) under one+@rem or more contributor license agreements. See the NOTICE file+@rem distributed with this work for additional information+@rem regarding copyright ownership. The ASF licenses this file+@rem to you under the Apache License, Version 2.0 (the+@rem "License"); you may not use this file except in compliance+@rem with the License. You may obtain a copy of the License at+@rem+@rem http://www.apache.org/licenses/LICENSE-2.0+@rem+@rem Unless required by applicable law or agreed to in writing,+@rem software distributed under the License is distributed on an+@rem "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY+@rem KIND, either express or implied. See the License for the+@rem specific language governing permissions and limitations+@rem under the License.++@rem The "main" Go build script for Windows CI++pushd go\arrow++%GOROOT%\bin\go version+%GOROOT%\bin\go get -v ./... || exit /B+%GOROOT%\bin\go test -race ./... || exit /B++popd