@@ -120,28 +120,32 @@ install:
120120- sh : if test ${BUILD_ENVIRONMENT} = "xcode"; then brew untap homebrew/homebrew-cask-versions && brew update -q; fi
121121- sh : if test ${BUILD_ENVIRONMENT} = "xcode"; then brew install -q autoconf automake gettext gnu-sed libtool pkg-config || true; fi
122122- ps : If ($env:BUILD_ENVIRONMENT -eq "cygwin64") {
123- (New-Object Net.WebClient).DownloadFile( "https://cygwin.com/setup-x86_64.exe", " C:\\ cygwin64\\ setup-x86_64.exe") }
123+ Invoke-WebRequest -Uri "https://cygwin.com/setup-x86_64.exe" -Outfile C:\cygwin64\setup-x86_64.exe }
124124- cmd : if [%BUILD_ENVIRONMENT%]==[cygwin64] (
125- 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 -P wget )
125+ 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 )
126+ - ps : If ($env:BUILD_ENVIRONMENT -eq "cygwin64" -And -Not (Test-Path ..\config.guess)) {
127+ Invoke-WebRequest -Uri "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD" -Outfile ..\config.guess }
128+ - ps : If ($env:BUILD_ENVIRONMENT -eq "cygwin64" -And -Not (Test-Path ..\config.sub)) {
129+ Invoke-WebRequest -Uri "http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD" -Outfile ..\config.sub }
126130- cmd : if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
127131 C:\msys64\usr\bin\pacman -S --noconfirm --needed autoconf automake gettext-devel libtool make mingw-w64-x86_64-gcc pkg-config )
128- - ps : If ( ( "cygwin64-gcc-no-optimization", "mingw-w64-gcc-no-optimization" ).Contains( $env:TARGET ) ) {
129- $ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://uploader.codecov.io/latest/windows/codecov.exe -Outfile ..\codecov.exe }
132+ - ps : If (( "cygwin64-gcc-no-optimization", "mingw-w64-gcc-no-optimization").Contains($env:TARGET) ) {
133+ Invoke-WebRequest -Uri " https://uploader.codecov.io/latest/windows/codecov.exe" -Outfile ..\codecov.exe }
130134
131135build_script :
132136- ps : If ($env:BUILD_ENVIRONMENT -eq "msbuild") {
133137 .\synclibs.ps1;
134138 .\autogen.ps1 }
135139- ps : If ($env:TARGET -eq "vs2008") {
136140 .\build.ps1 -VisualStudioVersion 2008 -PythonPath $env:PYTHON_PATH -VSToolsOptions "--no-python-dll" }
137- - ps : If ( ( "vs2010", "vs2012", "vs2013", "vs2015" ).Contains( $env:TARGET ) ) {
141+ - ps : If (( "vs2010", "vs2012", "vs2013", "vs2015").Contains($env:TARGET) ) {
138142 .\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" }
139- - ps : If ( ( "vs2017", "vs2019", "vs2022", "vs2022-vsdebug", "vs2022-x64" ).Contains( $env:TARGET ) ) {
143+ - ps : If (( "vs2017", "vs2019", "vs2022", "vs2022-vsdebug", "vs2022-x64").Contains($env:TARGET) ) {
140144 .\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" }
141145- 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
142146- cmd : if [%BUILD_ENVIRONMENT%]==[cygwin64] (
143147 xcopy /i /q /s C:\projects\libcpath C:\cygwin64\home\appveyor\libcpath &&
144- C:\cygwin64\bin\bash -e -l -c "cd libcpath && wget -q 'http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD' -O './config.guess' && wget -q 'http://git.savannah.gnu.org/gitweb/?p= config.git;a=blob_plain;f=config.sub;hb=HEAD' -O './config.sub'" &&
148+ xcopy /i /q ..\ config.* C:\cygwin64\home\appveyor\libcpath &&
145149 C:\cygwin64\bin\bash -e -l -c "cd libcpath && tests/build.sh ${CONFIGURE_OPTIONS}" )
146150- cmd : if [%BUILD_ENVIRONMENT%]==[mingw-w64] (
147151 xcopy /i /q /s C:\projects\libcpath C:\msys64\home\appveyor\libcpath &&
0 commit comments