@@ -91,38 +91,12 @@ environment:
9191 APPVEYOR_BUILD_WORKER_IMAGE : macos-sonoma
9292 HOMEBREW_NO_INSTALL_CLEANUP : 1
9393 CONFIGURE_OPTIONS : " --disable-dependency-tracking --prefix=/usr/local --with-pyprefix"
94- - TARGET : cygwin64-gcc
95- BUILD_ENVIRONMENT : cygwin64
96- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
97- CONFIGURE_OPTIONS : " "
98- - TARGET : cygwin64-gcc-no-optimization
99- BUILD_ENVIRONMENT : cygwin64
100- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
101- CONFIGURE_OPTIONS : " --enable-code-coverage"
102- - TARGET : mingw-w64-gcc
103- BUILD_ENVIRONMENT : mingw-w64
104- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
105- CONFIGURE_OPTIONS : " "
106- - TARGET : mingw-w64-gcc-no-optimization
107- BUILD_ENVIRONMENT : mingw-w64
108- APPVEYOR_BUILD_WORKER_IMAGE : Visual Studio 2022
109- CONFIGURE_OPTIONS : " --enable-code-coverage"
11094
11195install :
11296- cmd : if [%BUILD_ENVIRONMENT%]==[msbuild] (
11397 git clone https://github.com/libyal/vstools.git ..\vstools )
11498- sh : if test ${BUILD_ENVIRONMENT} = "xcode"; then brew untap homebrew/homebrew-cask-versions && brew update -q; fi
11599- sh : if test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true; fi
116- - ps : If ($env:BUILD_ENVIRONMENT -eq "cygwin64") {
117- Invoke-WebRequest -Uri "https://cygwin.com/setup-x86_64.exe" -Outfile C:\cygwin64\setup-x86_64.exe }
118- - cmd : if [%BUILD_ENVIRONMENT%]==[cygwin64] (
119- C:\cygwin64\setup-x86_64.exe -qgnNdO -l C:\cygwin64\var\cache\setup -R c:\cygwin64 -s http://cygwin.mirror.constant.com -P gettext-devel )
120- - cmd : if [%BUILD_ENVIRONMENT%]==[cygwin64] (
121- git clone git://git.savannah.gnu.org/config.git ..\config )
122- - cmd : if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
123- C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc pkg-config )
124- - ps : If (("cygwin64-gcc-no-optimization", "mingw-w64-gcc-no-optimization").Contains($env:TARGET)) {
125- Invoke-WebRequest -Uri "https://uploader.codecov.io/latest/windows/codecov.exe" -Outfile ..\codecov.exe }
126100
127101build_script :
128102- ps : If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
@@ -135,30 +109,11 @@ build_script:
135109- ps : If (("vs2017", "vs2019", "vs2022", "vs2022-vsdebug", "vs2022-x64").Contains($env:TARGET)) {
136110 .\build.ps1 -VisualStudioVersion $env:TARGET.Substring(2, 4) -Configuration $env:CONFIGURATION -Platform $env:PLATFORM -PythonPath $env:PYTHON_PATH -VSToolsOptions "--extend-with-x64 --no-python-dll --with-dokany" }
137111- sh : if test ${BUILD_ENVIRONMENT} = "xcode"; then export PATH="/usr/local/opt/gettext/bin:$PATH"; export SED="/usr/local/bin/gsed"; tests/build.sh ${CONFIGURE_OPTIONS}; fi
138- - cmd : if [%BUILD_ENVIRONMENT%]==[cygwin64] (
139- xcopy /i /q /s C:\projects\libcthreads C:\cygwin64\home\appveyor\libcthreads &&
140- xcopy /i /q ..\config\config.* C:\cygwin64\home\appveyor\libcthreads &&
141- C:\cygwin64\bin\bash -e -l -c "cd libcthreads && tests/build.sh ${CONFIGURE_OPTIONS}" )
142- - cmd : if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
143- xcopy /i /q /s C:\projects\libcthreads C:\msys64\home\appveyor\libcthreads &&
144- C:\msys64\usr\bin\bash -e -l -c "cd libcthreads && tests/build.sh ${CONFIGURE_OPTIONS}" )
145112
146113test_script :
147114- cmd : rem Run tests
148115- ps : If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
149116 .\runtests.ps1 }
150117- sh : if test ${BUILD_ENVIRONMENT} = "xcode" && test ${TARGET} != "macos-pkgbuild"; then tests/runtests.sh; fi
151118- sh : if test ${TARGET} = "macos-pkgbuild"; then tests/pkgbuild.sh; fi
152- - cmd : if [%BUILD_ENVIRONMENT%]==[cygwin64] (
153- C:\cygwin64\bin\bash -l -c "cd libcthreads && tests/runtests.sh" )
154- - cmd : if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
155- C:\msys64\usr\bin\bash -l -c "cd libcthreads && tests/runtests.sh" )
156-
157- after_test :
158- - cmd : if [%TARGET%]==[cygwin64-gcc-no-optimization] (
159- C:\cygwin64\bin\bash -e -l -c "cd libcthreads && for DIRECTORY in `find . -maxdepth 1 -type d`; do (cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) done" &&
160- C:\projects\codecov.exe -R \cygwin64\home\appveyor\libcthreads --name %TARGET% )
161- - cmd : if [%TARGET%]==[mingw-w64-gcc-no-optimization] (
162- C:\msys64\usr\bin\bash -e -l -c "cd libcthreads && for DIRECTORY in `find . -maxdepth 1 -type d`; do (cd ${DIRECTORY} && find . -maxdepth 1 -name \*.gcno -type f -exec gcov -pb {} \;) done" &&
163- C:\projects\codecov.exe -R \msys64\home\appveyor\libcthreads --name %TARGET% )
164119
0 commit comments