version: '{build}'
platform:
  - x64
image: Visual Studio 2017
environment:
  global:
    URHO3D_D3D11: 1
    URHO3D_ENABLE_ALL: ON
  matrix:
    - BUILD_SHARED_LIBS: OFF
    - BUILD_SHARED_LIBS: ON
before_build:
  - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
  - mkdir "%APPVEYOR_BUILD_FOLDER%\Build"
  - cd "%APPVEYOR_BUILD_FOLDER%\Build"
  - cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%APPVEYOR_BUILD_FOLDER%\Urho3D-SDK" ..
build_script:
  - cd "%APPVEYOR_BUILD_FOLDER%\Build"
  - cmake --build . --target install -- /r /p:BuildDir=%APPVEYOR_BUILD_FOLDER%\Build\
after_build:
  - cd "%APPVEYOR_BUILD_FOLDER%"
  - 7z a Urho3D-SDK.7z "%APPVEYOR_BUILD_FOLDER%\Urho3D-SDK"
test: off
artifacts:
  path: Urho3D-SDK.7z
branches:
  except:
    - /^(.*[^\w])?(travis|no-ci)-.+$/

version: '{build}'
platform:
  - x64
image: Visual Studio 2017
environment:
  global:
    URHO3D_D3D11: 1
    URHO3D_ENABLE_ALL: ON
  matrix:
    - BUILD_SHARED_LIBS: ON
    - BUILD_SHARED_LIBS: OFF
before_build:
  - call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvars64.bat"
  - mkdir "%APPVEYOR_BUILD_FOLDER%\Build"
  - cd "%APPVEYOR_BUILD_FOLDER%\Build"
  - cmake -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="%APPVEYOR_BUILD_FOLDER%\Urho3D-SDK" ..
build_script:
  - cd "%APPVEYOR_BUILD_FOLDER%\Build"
  - cmake --build . --target install -- /r /p:BuildDir=%APPVEYOR_BUILD_FOLDER%\Build\
after_build:
  - cd "%APPVEYOR_BUILD_FOLDER%"
  - 7z a Urho3D-SDK.7z "%APPVEYOR_BUILD_FOLDER%\Urho3D-SDK"
test: off
artifacts:
  path: Urho3D-SDK.7z
branches:
  except:
    - /^(.*[^\w])?(travis|no-ci)-.+$/

Make shared lib builds go first on windows because they are a constant source of problems.
CI: Make shared lib builds go first on windows because they are a constant source of problems.
