version: "{build}"

platform:
    - Win32
    - x64

configuration:
    - Debug

matrix:
    fast_finish: true

shallow_clone: true

clone_folder: C:\projects\Kunlaboro

before_build:
    - cmd: cd C:\projects\Kunlaboro
    - cmd: if %PLATFORM%==Win32 cmake . -G"Visual Studio 14 2015" -Tv140_xp -DKunlaboro_BUILD_TESTS=ON
    - cmd: if %PLATFORM%==x64 cmake . -G"Visual Studio 14 2015 Win64" -DKunlaboro_BUILD_TESTS=ON

build:
    project: Kunlaboro.sln

test_script:
    - ps: |
        & 'tests\%configuration%\testsuite.exe' -r junit > testresult.xml
        $url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
        $file = "testresult.xml"
        (New-Object 'System.Net.WebClient').UploadFile($url, (Resolve-Path $file))
        exit $LASTEXITCODE

version: "{build}"

platform:
    - Win32
    - x64

configuration:
    - Debug

matrix:
    fast_finish: true

shallow_clone: true

clone_folder: C:\projects\Kunlaboro

before_build:
    - cmd: cd C:\projects\Kunlaboro
    - cmd: if %PLATFORM%==Win32 cmake . -G"Visual Studio 14 2015" -Tv140_xp -DKunlaboro_BUILD_TESTS=ON
    - cmd: if %PLATFORM%==x64 cmake . -G"Visual Studio 14 2015 Win64" -DKunlaboro_BUILD_TESTS=ON

build:
    project: Kunlaboro.sln

test_script:
    - ps: |
        & 'tests\($env:configuration)\testsuite.exe' -r junit > testresult.xml
        $url = "https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)"
        $file = "testresult.xml"
        (New-Object 'System.Net.WebClient').UploadFile($url, (Resolve-Path $file))
        exit $LASTEXITCODE

Use the correct powershell syntax
Use the correct powershell syntax
