@@ -37,16 +37,55 @@ install:
37
37
- ps : Expand-Archive winflexbison.zip -Destination /WinFlexBison
38
38
- ps : Copy-Item -Path /WinFlexBison/win_bison.exe /WinFlexBison/bison.exe
39
39
- ps : Copy-Item -Path /WinFlexBison/win_flex.exe /WinFlexBison/flex.exe
40
+ - cd C:\Tools\vcpkg
41
+ - git pull
42
+ - .\bootstrap-vcpkg.bat
43
+ - cd %APPVEYOR_BUILD_FOLDER%
40
44
41
45
before_build :
42
- - git clone --depth=1 https://github.com/calyptia/fluent-bit-ci.git ci
43
- - ps : Copy-Item -Path .\ci\scripts\run-unit-tests.ps1 .\ci\do-ut.ps1
46
+ - if %PLATFORM%==Win32 call C:\tools\vcpkg\vcpkg install --recurse openssl --triplet x86-windows-static
47
+ - if %PLATFORM%==x64 call C:\tools\vcpkg\vcpkg install --recurse openssl --triplet x64-windows-static
44
48
- if %PLATFORM%==Win32 call "%vspath%\VC\Auxiliary\Build\vcvars32.bat"
45
49
- if %PLATFORM%==x64 call "%vspatH%\VC\Auxiliary\Build\vcvars64.bat"
46
50
47
51
build_script :
48
- - powershell ".\ci\do-ut.ps1;exit $LASTEXITCODE"
49
- - cd build
52
+ - ps : |
53
+ cd $ENV:APPVEYOR_BUILD_FOLDER\build
54
+
55
+ if ( "x64" -eq $env:PLATFORM ) {
56
+ $OPENSSL_DIR = "C:\tools\vcpkg\packages\openssl_x64-windows-static"
57
+ }
58
+ else {
59
+ $OPENSSL_DIR = "C:\tools\vcpkg\packages\openssl_x86-windows-static"
60
+ }
61
+ # CACHE GENERATION
62
+ cmake -G "NMake Makefiles" `
63
+ -D FLB_TESTS_INTERNAL=On `
64
+ -D OPENSSL_ROOT_DIR=$OPENSSL_DIR `
65
+ -D FLB_WITHOUT_flb-rt-out_elasticsearch=On `
66
+ -D FLB_WITHOUT_flb-rt-out_td=On `
67
+ -D FLB_WITHOUT_flb-rt-out_forward=On `
68
+ -D FLB_WITHOUT_flb-rt-in_disk=On `
69
+ -D FLB_WITHOUT_flb-rt-in_proc=On `
70
+ -D FLB_WITHOUT_flb-it-parser=On `
71
+ -D FLB_WITHOUT_flb-it-unit_sizes=On `
72
+ -D FLB_WITHOUT_flb-it-network=On `
73
+ -D FLB_WITHOUT_flb-it-pack=On `
74
+ -D FLB_WITHOUT_flb-it-signv4=On `
75
+ -D FLB_WITHOUT_flb-it-aws_credentials=On `
76
+ -D FLB_WITHOUT_flb-it-aws_credentials_ec2=On `
77
+ -D FLB_WITHOUT_flb-it-aws_credentials_http=On `
78
+ -D FLB_WITHOUT_flb-it-aws_credentials_profile=On `
79
+ -D FLB_WITHOUT_flb-it-aws_credentials_sts=On `
80
+ -D FLB_WITHOUT_flb-it-aws_util=On `
81
+ -D FLB_WITHOUT_flb-it-input_chunk=On `
82
+ ../
83
+ # COMPILE
84
+ cmake --build .
85
+
86
+ # RUNNING TESTS
87
+ ctest --build-run-dir $PWD --output-on-failure
88
+
50
89
- cpack
51
90
- cmake -G "NMake Makefiles" ..\
52
91
- cmake --build .
0 commit comments