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
2020-01-15 09:39:48 +00:00
clone_depth : 1
2015-07-12 16:07:01 +00:00
# branches to build
branches :
# whitelist
only :
- master
2017-10-10 09:11:21 +00:00
matrix :
fast_finish : true
2017-10-07 14:27:21 +00:00
image :
2019-10-22 18:24:23 +00:00
- Visual Studio 2013
2020-01-28 21:02:29 +00:00
#- Visual Studio 2015
#- Visual Studio 2017
2019-10-02 08:21:56 +00:00
- Visual Studio 2019
2020-01-28 21:02:29 +00:00
#- MinGW
2017-10-07 14:27:21 +00:00
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
2017-10-08 05:21:32 +00:00
2017-10-07 14:27:21 +00:00
configuration : Release
2015-07-12 16:07:01 +00:00
2016-02-17 12:44:33 +00:00
install :
2017-10-08 05:21:32 +00:00
- set PATH=C:\Ruby24-x64\bin;%PATH%
2017-10-07 14:27:21 +00:00
- set CMAKE_DEFINES -DASSIMP_WERROR=ON
2019-09-21 14:36:22 +00:00
- if [%COMPILER%]==[MinGW] set PATH=C:\MinGW\bin;%PATH%
2019-10-23 20:42:19 +00:00
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2013" set CMAKE_GENERATOR_NAME=Visual Studio 12 2013
2019-04-26 19:11:23 +00:00
- 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
2019-10-02 08:30:50 +00:00
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2019" set CMAKE_GENERATOR_NAME=Visual Studio 16 2019
2019-10-07 08:12:40 +00:00
- cmake %CMAKE_DEFINES% -G "%CMAKE_GENERATOR_NAME%" -A %platform% .
2019-10-23 20:42:19 +00:00
# Rename sh.exe as sh.exe in PATH interferes with MinGW - if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2015" set CMAKE_GENERATOR_NAME=Visual Studio 14 2015
2019-09-21 14:36:22 +00:00
- rename "C:\Program Files\Git\usr\bin\sh.exe" "sh2.exe"
2018-06-03 15:21:46 +00:00
- set PATH=%PATH%;"C:\\Program Files (x86)\\Inno Setup 5"
2018-06-04 07:01:17 +00:00
- ps : Invoke-WebRequest -Uri https://download.microsoft.com/download/5/7/b/57b2947c-7221-4f33-b35e-2fc78cb10df4/vc_redist.x64.exe -OutFile .\packaging\windows-innosetup\vc_redist.x64.exe
- ps : Invoke-WebRequest -Uri https://download.microsoft.com/download/1/d/8/1d8137db-b5bb-4925-8c5d-927424a2e4de/vc_redist.x86.exe -OutFile .\packaging\windows-innosetup\vc_redist.x86.exe
2017-10-08 05:21:32 +00:00
2019-04-26 19:11:23 +00:00
cache :
- code\assimp.dir\%CONFIGURATION%
- contrib\zlib\zlibstatic.dir\%CONFIGURATION%
- contrib\zlib\zlib.dir\%CONFIGURATION%
- tools\assimp_cmd\assimp_cmd.dir\%CONFIGURATION%
- tools\assimp_view\assimp_viewer.dir\%CONFIGURATION%
- test\unit.dir\%CONFIGURATION%
- bin\.mtime_cache
2017-10-08 05:21:32 +00:00
before_build :
2020-01-15 13:11:40 +00:00
- echo NUMBER_OF_PROCESSORS=%NUMBER_OF_PROCESSORS%
2017-10-08 05:31:46 +00:00
- ruby scripts\AppVeyor\mtime_cache -g scripts\AppVeyor\cacheglobs.txt -c bin\.mtime_cache\cache.json
2017-10-08 05:21:32 +00:00
2020-01-17 12:33:50 +00:00
build_script :
2020-01-17 18:32:59 +00:00
cmake --build . --config Release -- /maxcpucount:2
2017-10-07 14:27:21 +00:00
2016-02-19 17:32:16 +00:00
after_build :
2019-04-30 13:33:31 +00:00
- if "%APPVEYOR_BUILD_WORKER_IMAGE%"=="Visual Studio 2017" (
if "%platform%"=="x64" (
iscc packaging\windows-innosetup\script_x64.iss
2019-04-30 13:51:32 +00:00
) else (
2019-04-30 13:33:31 +00:00
iscc packaging\windows-innosetup\script_x86.iss
)
)
2017-10-08 05:31:46 +00:00
- 7z a assimp.7z bin\%CONFIGURATION%\* lib\%CONFIGURATION%\*
2017-10-07 14:27:21 +00:00
2017-10-08 01:32:14 +00:00
test_script :
2017-10-08 07:57:35 +00:00
- cmd : bin\%CONFIGURATION%\unit.exe --gtest_output=xml:testout.xml
2017-10-08 06:06:23 +00:00
2017-10-08 07:57:35 +00:00
on_finish :
- ps : (new-object net.webclient).UploadFile("https://ci.appveyor.com/api/testresults/junit/$($env:APPVEYOR_JOB_ID)", (Resolve-Path .\testout.xml))
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