2
2
" {build}"
3
3
4
4
os :
5
- Windows Server 2012 R2
5
+ Visual Studio 2019
6
6
7
7
clone_folder :
8
8
C:\grok_exporter
@@ -13,8 +13,6 @@ environment:
13
13
CC : x86_64-w64-mingw32-gcc
14
14
CGO_ENABLED : 1
15
15
CGO_LDFLAGS : C:\msys64\mingw64\lib\libonig.a
16
- matrix :
17
- - ONIG_VERSION : 6.9.4
18
16
19
17
# --------------------------------------------------------------------------
20
18
# The install phase installs the Oniguruma library,
@@ -28,20 +26,20 @@ install:
28
26
29
27
# Uncomment the following command to upgrade the cygwin packages:
30
28
# - C:\cygwin\setup-x86.exe -q -g
31
- - C:\cygwin \bin\bash -lc "cygcheck -dc cygwin"
29
+ - C:\cygwin64 \bin\bash -lc "cygcheck -dc cygwin"
32
30
33
31
# Download and unpack Oniguruma sources
34
32
35
33
- cd C:\
36
- - appveyor DownloadFile https://github.com/kkos/oniguruma/releases/download/v%ONIG_VERSION% /onig-%ONIG_VERSION% .tar.gz
37
- - 7z x onig-%ONIG_VERSION% .tar.gz -so | 7z x -si -ttar > nul
38
- - cd onig-%ONIG_VERSION%
34
+ - appveyor DownloadFile https://github.com/kkos/oniguruma/releases/download/v6.9.5_rev1 /onig-6.9.5-rev1 .tar.gz
35
+ - 7z x onig-6.9.5-rev1 .tar.gz -so | 7z x -si -ttar > nul
36
+ - cd onig-6.9.5
39
37
40
38
# Compile Oniguruma using x86_64-w64-mingw32-gcc
41
39
42
- - C:\cygwin \bin\bash -c "PATH='/usr/sbin:/usr/bin:/sbin:/bin' ./configure -v --host=x86_64-w64-mingw32 --prefix=/cygdrive/c/msys64/mingw64"
43
- - C:\cygwin \bin\bash -c "PATH='/usr/sbin:/usr/bin:/sbin:/bin' make"
44
- - C:\cygwin \bin\bash -c "PATH='/usr/sbin:/usr/bin:/sbin:/bin' make install"
40
+ - C:\cygwin64 \bin\bash -c "PATH='/usr/sbin:/usr/bin:/sbin:/bin' ./configure -v --host=x86_64-w64-mingw32 --prefix=/cygdrive/c/msys64/mingw64"
41
+ - C:\cygwin64 \bin\bash -c "PATH='/usr/sbin:/usr/bin:/sbin:/bin' make"
42
+ - C:\cygwin64 \bin\bash -c "PATH='/usr/sbin:/usr/bin:/sbin:/bin' make install"
45
43
46
44
# --------------------------------------------------------------------------
47
45
# The build phase compiles and tests grok_exporter.
@@ -50,15 +48,14 @@ install:
50
48
build_script :
51
49
- cd c:\grok_exporter
52
50
- git submodule update --init --recursive
53
- - set GO111MODULE=on
54
51
- go version
55
52
- go test ./...
56
53
- go install
57
- - C:\cygwin \bin\bash -c "cd /cygdrive/c/grok_exporter ; PATH='/usr/sbin:/usr/bin:/sbin:/bin' ./hack/smoke-test.sh"
54
+ - C:\cygwin64 \bin\bash -c "cd /cygdrive/c/grok_exporter ; PATH='/usr/sbin:/usr/bin:/sbin:/bin' ./hack/smoke-test.sh"
58
55
59
56
# Print the linked DLLs, so we can check that grok_exporter does not have
60
57
# a runtime dependency on Oniguruma.
61
- - C:\cygwin \bin\bash -c "PATH='/usr/sbin:/usr/bin:/sbin:/bin' x86_64-w64-mingw32-objdump -p /cygdrive/c/go/bin/grok_exporter.exe | grep 'DLL Name:'"
58
+ - C:\cygwin64 \bin\bash -c "PATH='/usr/sbin:/usr/bin:/sbin:/bin' x86_64-w64-mingw32-objdump -p /cygdrive/c/go/bin/grok_exporter.exe | grep 'DLL Name:'"
62
59
63
60
# Success.
64
61
- grok_exporter -version
0 commit comments