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
This commit is contained in:
Sebastian Spaink 2021-02-10 11:28:57 -06:00 committed by GitHub
parent 198bcc8f36
commit 3a66b57d2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 35 deletions

View File

@ -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'

View File

@ -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