1image: 2- Visual Studio 2015 3 4environment: 5 matrix: 6 - arch: x86_64 7 - arch: i686 8 9build: 10 verbosity: detailed 11 12build_script: 13- ps: | 14 If ($env:arch -Match "x86_64") { 15 $env:MSYSTEM = "MINGW64" 16 } Else { 17 $env:MSYSTEM = "MINGW32" 18 } 19 20 $env:CONFIGURE_FLAGS = "--disable-drm --disable-wayland --disable-randr --disable-vidmode --enable-wingdi --disable-quartz --disable-geoclue2 --disable-corelocation --disable-gui --disable-ubuntu --disable-nls --host=$env:arch-w64-mingw32" 21 22- ps: md (Join-Path $env:APPVEYOR_BUILD_FOLDER root) 23- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./bootstrap" 24- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && ./configure --prefix=\"$APPVEYOR_BUILD_FOLDER/root\" $CONFIGURE_FLAGS" 25- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make distcheck DISTCHECK_CONFIGURE_FLAGS=\"$CONFIGURE_FLAGS\"" 26- C:\msys64\usr\bin\bash -lc "cd $APPVEYOR_BUILD_FOLDER && make install" 27 28test_script: 29- | 30 %APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -l 12:-34 -pv 31- | 32 %APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -l 12:-34 -m dummy -vo 33- ps: Set-Content -Value "[redshift]`ndawn-time=6:30`ndusk-time=18:00-19:30`n" -Path time.config 34- | 35 %APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -c time.config -pv 36- | 37 %APPVEYOR_BUILD_FOLDER%\root\bin\redshift.exe -c time.config -m dummy -vo 38 39after_build: 40- ps: | 41 $ZIP_NAME = "redshift-windows-$env:arch" 42 $ZIP_FILE = "redshift-windows-$env:arch.zip" 43 44 md $ZIP_NAME 45 Copy-Item -Path $env:APPVEYOR_BUILD_FOLDER\root\bin\redshift.exe -Destination $ZIP_NAME 46 Copy-Item -Path README.md -Destination $ZIP_NAME/README.txt 47 Copy-Item -Path NEWS.md -Destination $ZIP_NAME/NEWS.txt 48 Copy-Item -Path COPYING -Destination $ZIP_NAME/COPYING.txt 49 Copy-Item -Path redshift.conf.sample -Destination $ZIP_NAME 50 7z a $ZIP_FILE $ZIP_NAME/ 51 52- ps: Push-AppveyorArtifact $ZIP_FILE 53