2015-07-12 16:07:01 +00:00
|
|
|
# AppVeyor file
|
|
|
|
# http://www.appveyor.com/docs/appveyor-yml
|
|
|
|
|
2015-07-12 17:19:35 +00:00
|
|
|
# clone directory
|
|
|
|
clone_folder: c:\projects\assimp
|
|
|
|
|
2015-07-12 16:07:01 +00:00
|
|
|
# branches to build
|
|
|
|
branches:
|
|
|
|
# whitelist
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
|
2017-10-07 14:27:21 +00:00
|
|
|
image:
|
|
|
|
- Visual Studio 2013
|
|
|
|
- Visual Studio 2015
|
|
|
|
- Visual Studio 2017
|
|
|
|
|
2016-01-09 11:13:39 +00:00
|
|
|
platform:
|
2017-10-07 14:55:10 +00:00
|
|
|
- Win32
|
2017-10-07 14:27:21 +00:00
|
|
|
- x64
|
2016-02-15 09:20:34 +00:00
|
|
|
|
2017-10-07 14:27:21 +00:00
|
|
|
configuration: Release
|
2015-07-12 16:07:01 +00:00
|
|
|
|
2017-10-07 14:27:21 +00:00
|
|
|
build:
|
|
|
|
parallel: true
|
|
|
|
project: Assimp.sln
|
2016-02-17 12:44:33 +00:00
|
|
|
|
|
|
|
install:
|
2017-10-07 14:27:21 +00:00
|
|
|
- set CMAKE_DEFINES -DASSIMP_WERROR=ON
|
2017-10-07 14:47:08 +00:00
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" set CMAKE_GENERATOR_NAME=Visual Studio 12 2013
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" set CMAKE_GENERATOR_NAME=Visual Studio 14 2015
|
|
|
|
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" set CMAKE_GENERATOR_NAME=Visual Studio 15 2017
|
|
|
|
- if "%platform%"=="x64" set CMAKE_GENERATOR_NAME=%CMAKE_GENERATOR_NAME% Win64
|
2017-10-07 14:27:21 +00:00
|
|
|
- cmake %CMAKE_DEFINES% -G "%CMAKE_GENERATOR_NAME%"
|
|
|
|
|
|
|
|
cache:
|
|
|
|
- code\assimp.dir\%CONFIGURATION%
|
|
|
|
|
2016-02-19 17:32:16 +00:00
|
|
|
after_build:
|
2017-10-07 14:27:21 +00:00
|
|
|
- 7z a assimp.7z %APPVEYOR_BUILD_FOLDER%\bin\%CONFIGURATION%\* %APPVEYOR_BUILD_FOLDER%\lib\%CONFIGURATION%\*
|
|
|
|
|
2017-10-08 01:32:14 +00:00
|
|
|
test_script:
|
|
|
|
- cmd: bin\%CONFIGURATION%\unit.exe
|
2017-10-07 14:27:21 +00:00
|
|
|
|
2016-02-19 17:32:16 +00:00
|
|
|
artifacts:
|
2016-02-19 19:42:56 +00:00
|
|
|
- path: assimp.7z
|
2016-02-19 17:40:21 +00:00
|
|
|
name: assimp_lib
|