version: '{branch}-rev{build}'

shallow_clone: true

os:
  - Visual Studio 2015

environment:
  matrix:
  - TOOLSET: vs2015

install:
  - cd build && "./premake5.exe" %TOOLSET% && cd ..

configuration:
  - DebugDynamic
  - ReleaseDynamic

platform:
  - x32
  - x64

build:
  project: build/$(TOOLSET)/NazaraEngine.sln
  
#after_build:
#  - cd tests && "./NazaraUnitTests"

after_build:
  - cd build && "./premake5.exe" package && cd ..
  - 7z a NazaraEngine.7z package\*

artifacts:
  - path: NazaraEngine.7z
    name: NazaraEngine

version: '{branch}-rev{build}'

shallow_clone: true

os:
  - Visual Studio 2015

environment:
  matrix:
  - TOOLSET: vs2015

install:
  - cd build && "./premake5.exe" %TOOLSET% && cd ..

configuration:
  - DebugDynamic
  - ReleaseDynamic

platform:
  - x32
  - x64

build:
  project: build/$(TOOLSET)/NazaraEngine.sln
  
#after_build:
#  - cd tests && "./NazaraUnitTests"

after_build:
  - cd build && "./premake5.exe" package && cd ..
  - 7z a NazaraEngine.7z package\*

artifacts:
  - path: 'NazaraEngine-$(CONFIGURATION)-$(PLATFORM)-$(APPVEYOR_REPO_COMMIT).7z'
    name: 'NazaraEngine-$(CONFIGURATION)-$(PLATFORM)-$(APPVEYOR_REPO_COMMIT)'

Add configuration, platform and sha to the artifact name
AppVeyor: Add configuration, platform and sha to the artifact name

Former-commit-id: b6136dd88307923c48340e77183191b249479637 [formerly 431bbe46e8bbcfe4d03baf53ae6bd3f1fe945490] [formerly 47abf7682120209cef37d72192d29318fcf192b8 [formerly 4137f444cef112d25029537130cc9437a296906e]]
Former-commit-id: d5801daf3ae88a6f3701cc7c25497682f62c250f [formerly 87a5aaaae841b3dc42d30128c2f92f33c604c889]
Former-commit-id: f2eb4ea36c3bbcf11c35fad4a7f1067a27c46105