From 3a66b57d2cf4656bde8f2361ac99a4a8abe869cb Mon Sep 17 00:00:00 2001 From: Sebastian Spaink <3441183+sspaink@users.noreply.github.com> Date: Wed, 10 Feb 2021 11:28:57 -0600 Subject: [PATCH] Move windows tests to circle-ci, remove appveyor (#8844) * windows tests to circleci * Add as requirement to package/release * Use latest windows orb * Add to nightly --- .circleci/config.yml | 20 ++++++++++++++++++++ appveyor.yml | 35 ----------------------------------- 2 files changed, 20 insertions(+), 35 deletions(-) delete mode 100644 appveyor.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 5e44cfe59..1c8b8da82 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,6 @@ version: 2.1 +orbs: + win: circleci/windows@2.4.0 executors: go-1_14: @@ -129,6 +131,16 @@ jobs: executor: mac steps: - test-go-mac + test-go-windows: + executor: + name: win/default + shell: powershell.exe + steps: + - checkout + - run: choco upgrade golang --version=1.15.5 + - run: choco install make + - run: git config --system core.longpaths true + - run: make test-windows package: executor: go-1_15 @@ -186,8 +198,13 @@ workflows: filters: tags: # only runs on tags if you specify this filter only: /.*/ + - 'test-go-windows': + filters: + tags: + only: /.*/ - 'package': requires: + - 'test-go-windows' - 'test-go-darwin' - 'test-go-1_14' - 'test-go-1_14-386' @@ -195,6 +212,7 @@ workflows: - 'test-go-1_15-386' - 'release': requires: + - 'test-go-windows' - 'test-go-darwin' - 'test-go-1_14' - 'test-go-1_14-386' @@ -224,8 +242,10 @@ workflows: - 'test-go-darwin': requires: - 'macdeps' + - 'test-go-windows' - 'nightly': requires: + - 'test-go-windows' - 'test-go-darwin' - 'test-go-1_14' - 'test-go-1_14-386' diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index 6f5f6e948..000000000 --- a/appveyor.yml +++ /dev/null @@ -1,35 +0,0 @@ -version: "{build}" - -image: Visual Studio 2019 - -cache: - - C:\gopath\pkg\mod -> go.sum - - C:\ProgramData\chocolatey\bin -> appveyor.yml - - C:\ProgramData\chocolatey\lib -> appveyor.yml - -clone_folder: C:\gopath\src\github.com\influxdata\telegraf - -environment: - GOPATH: C:\gopath - -stack: go 1.15 - -platform: x64 - -install: - - choco install make - - cd "%GOPATH%\src\github.com\influxdata\telegraf" - - git config --system core.longpaths true - - go version - - go env - -build_script: - - make deps - - make telegraf - -test_script: - - make check - - make test-windows - -artifacts: - - path: telegraf.exe