]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
appveyor: add Cygwin build
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Sat, 9 Apr 2022 08:26:37 +0000 (10:26 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Mon, 11 Apr 2022 06:27:31 +0000 (08:27 +0200)
Closes https://github.com/curl/curl/pull/8693

appveyor.yml

index b544fec7aeb10e606644773a3d2ccf4dfe1e5227..c3018d93f49aa57527b2448ccfe65e8141f3caaf 100644 (file)
@@ -243,6 +243,14 @@ environment:
         DISABLED_TESTS: "!19 !504 !704 !705 ~1056 !1233"
         ADD_PATH: "C:\\msys64\\usr\\bin"
         CONFIG_ARGS: "--enable-warnings --enable-werror --with-schannel"
+      # autotools-based Cygwin build
+      - APPVEYOR_BUILD_WORKER_IMAGE: "Visual Studio 2022"
+        BUILD_SYSTEM: autotools
+        TESTING: ON
+        DISABLED_TESTS: "~1056"
+        ADD_PATH: "C:\\cygwin64\\bin"
+        CONFIG_ARGS: "--enable-debug --enable-werror --disable-threaded-resolver --without-ssl"
+        POSIX_PATH_PREFIX: "/cygdrive"
 
 install:
     - if not "%ADD_PATH%"=="" (
@@ -288,7 +296,7 @@ build_script:
         ..\builds\libcurl-vc14.10-x64-%PATHPART%-dll-ssl-dll-ipv6-sspi\bin\curl.exe -V
       ) else (
       if %BUILD_SYSTEM%==autotools (
-        bash.exe -e -l -c "cd /c/projects/curl && autoreconf -fi && ./configure %CONFIG_ARGS% && make V=1 && make V=1 examples && cd tests && make V=1"
+        bash.exe -e -l -c "cd %POSIX_PATH_PREFIX%/c/projects/curl && autoreconf -fi && ./configure %CONFIG_ARGS% && make V=1 && make V=1 examples && cd tests && make V=1"
       )))))
     - if %TESTING%==ON (
         if %BUILD_SYSTEM%==CMake (
@@ -302,9 +310,9 @@ test_script:
           cmake --build . --config %PRJ_CFG% --target test-ci
         ) else (
         if %BUILD_SYSTEM%==autotools (
-          bash.exe -e -l -c "cd /c/projects/curl && make V=1 TFLAGS='%DISABLED_TESTS%' test-ci"
+          bash.exe -e -l -c "cd %POSIX_PATH_PREFIX%/c/projects/curl && make V=1 TFLAGS='%DISABLED_TESTS%' test-ci"
         ) else (
-          bash.exe -e -l -c "cd /c/projects/curl/tests && ./runtests.pl -a -p !flaky -r -rm %DISABLED_TESTS%"
+          bash.exe -e -l -c "cd %POSIX_PATH_PREFIX%/c/projects/curl/tests && ./runtests.pl -a -p !flaky -r -rm %DISABLED_TESTS%"
         ))
       )