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:
parent
198bcc8f36
commit
3a66b57d2c
|
|
@ -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'
|
||||
|
|
|
|||
35
appveyor.yml
35
appveyor.yml
|
|
@ -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
|
||||
Loading…
Reference in New Issue