assimp/appveyor.yml

66 lines
1.7 KiB
YAML
Raw Normal View History

2015-07-12 16:07:01 +00:00
# AppVeyor file
# http://www.appveyor.com/docs/appveyor-yml
# clone directory
clone_folder: c:\projects\assimp
2015-07-12 16:07:01 +00:00
# branches to build
branches:
# whitelist
only:
- master
image:
- Visual Studio 2013
- Visual Studio 2015
- Visual Studio 2017
2016-01-09 11:13:39 +00:00
platform:
- Win32
- x64
2016-02-15 09:20:34 +00:00
environment:
- build_cache_dir: bin\.mtime_cache
- build_binary_dir: bin\%CONFIGURATION%
- appveyor_script_dir: scripts\AppVeyor
configuration: Release
2015-07-12 16:07:01 +00:00
2016-02-17 12:44:33 +00:00
install:
- set PATH=C:\Ruby24-x64\bin;%PATH%
- set CMAKE_DEFINES -DASSIMP_WERROR=ON
- 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
- cmake %CMAKE_DEFINES% -G "%CMAKE_GENERATOR_NAME%"
cache:
- assimp.dir\%CONFIGURATION%
- zlibstatic.dir\%CONFIGURATION%
- zlib.dir\%CONFIGURATION%
- assimp_cmd.dir\%CONFIGURATION%
- assimp_viewer.dir\%CONFIGURATION%
- unit.dir\%CONFIGURATION%
- $(build_cache_dir)
before_build:
- ruby $(appveyor_script_dir)\mtime_cache -g $(appveyor_script_dir)\cacheglobs.txt -c $(build_cache_dir)\cache.json
build:
parallel: true
project: Assimp.sln
2016-02-19 17:32:16 +00:00
after_build:
- 7z a assimp.7z $(build_binary_dir)\* lib\%CONFIGURATION%\*
2017-10-08 01:32:14 +00:00
test_script:
- cmd: $(build_binary_dir)\unit.exe --gtest_output=xml:testout.xml
after_test:
- 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:
- path: assimp.7z
2016-02-19 17:40:21 +00:00
name: assimp_lib