2017-05-12 13:08:17 +02:00
os : Visual Studio 2017
2016-08-05 23:58:23 +02:00
2016-08-06 19:01:05 +02:00
init :
2017-05-15 13:44:20 +02:00
# Set the AppVeyor build version number to our tag or, if untagged, to the commit hash
# See https://github.com/appveyor/ci/issues/691
# Also include the build number, to distinguish between rebuilds of the same commit
- ps : |
if ($env:APPVEYOR_REPO_TAG -eq "true") {
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_TAG_NAME)_#$env:APPVEYOR_BUILD_NUMBER"
2016-08-07 18:41:47 +02:00
} else {
2017-05-15 13:44:20 +02:00
Update-AppveyorBuild -Version "dev-$($env:APPVEYOR_REPO_COMMIT.Substring(0,8))_#$env:APPVEYOR_BUILD_NUMBER"
2016-08-06 19:01:05 +02:00
}
2016-08-05 23:58:23 +02:00
environment :
global :
BITS : 32
matrix :
- CONFIGURATION : Debug
2017-05-12 13:08:17 +02:00
COMPILER : MSVC
2016-08-05 23:58:23 +02:00
PLATFORM : x86_32
- CONFIGURATION : Debug
2017-05-12 13:08:17 +02:00
COMPILER : MSVC
2016-08-05 23:58:23 +02:00
PLATFORM : x86_64
- CONFIGURATION : Release
2017-05-12 13:08:17 +02:00
COMPILER : MSVC
2016-08-05 23:58:23 +02:00
PLATFORM : x86_32
- CONFIGURATION : Release
2017-05-12 13:08:17 +02:00
COMPILER : MSVC
2016-08-05 23:58:23 +02:00
PLATFORM : x86_64
- CONFIGURATION : Release
COMPILER : MinGW
PLATFORM : i686
- CONFIGURATION : Release
COMPILER : MinGW
PLATFORM : x86_64
2016-08-05 17:30:49 +02:00
build :
project : rufus.sln
parallel : true
verbosity : detailed
2016-08-05 23:58:23 +02:00
2016-08-05 17:30:49 +02:00
install :
2016-08-05 23:58:23 +02:00
- if [%PLATFORM%]==[x86_64] set BITS=64
2016-08-05 17:30:49 +02:00
build_script :
2017-05-12 13:08:17 +02:00
- if [%COMPILER%]==[MSVC] msbuild rufus.sln /m /p:Configuration=%CONFIGURATION%,Platform=%PLATFORM% /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"
2016-08-30 13:10:08 +02:00
- if [%COMPILER%]==[MinGW] C:\msys64\usr\bin\bash -lc "export PATH=/mingw%BITS%/bin:$PATH; cd /c/projects/rufus; ./configure --build=%PLATFORM%-w64-mingw32 --host=%PLATFORM%-w64-mingw32 --disable-debug; make -j4"