Skip to content

Commit

Permalink
fix appveyor build problem
Browse files Browse the repository at this point in the history
  • Loading branch information
fstab committed Jan 2, 2020
1 parent df2f8ec commit b769ec2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
21 changes: 6 additions & 15 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ os:
Windows Server 2012 R2

clone_folder:
C:\go\src\github.com\fstab\grok_exporter
C:\grok_exporter

environment:
PATH: c:\go\bin;C:\msys64\mingw64\bin;%PATH%
PATH: C:\go\bin;C:\msys64\mingw64\bin;%PATH%
GOPATH: c:\go
CC: x86_64-w64-mingw32-gcc
CGO_ENABLED: 1
Expand Down Expand Up @@ -48,22 +48,13 @@ install:
# --------------------------------------------------------------------------

build_script:
- cd c:\go\src\github.com\fstab\grok_exporter
- cd c:\grok_exporter
- git submodule update --init --recursive
- set GO111MODULE=on
- go version
- go test github.com/fstab/grok_exporter
- go test github.com/fstab/grok_exporter/config
- go test github.com/fstab/grok_exporter/config/v1
- go test github.com/fstab/grok_exporter/config/v2
- go test github.com/fstab/grok_exporter/exporter
- go test github.com/fstab/grok_exporter/oniguruma
- go test github.com/fstab/grok_exporter/tailer
- go test github.com/fstab/grok_exporter/tailer/fswatcher
- go test github.com/fstab/grok_exporter/tailer/glob
- go test github.com/fstab/grok_exporter/template
- go install github.com/fstab/grok_exporter
- C:\cygwin\bin\bash -c "cd /cygdrive/c/go/src/github.com/fstab/grok_exporter ; PATH='/usr/sbin:/usr/bin:/sbin:/bin' ./integration-test.sh"
- go test ./...
- go install
- C:\cygwin\bin\bash -c "cd /cygdrive/c/grok_exporter ; PATH='/usr/sbin:/usr/bin:/sbin:/bin' ./integration-test.sh"

# Print the linked DLLs, so we can check that grok_exporter does not have
# a runtime dependency on Oniguruma.
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: go

go:
- "1.12"
- "1.13"

os:
- linux
Expand Down
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,5 @@ require (
github.com/sirupsen/logrus v1.4.2
gopkg.in/yaml.v2 v2.2.2
)

go 1.13

0 comments on commit b769ec2

Please sign in to comment.