|
@@ -4,39 +4,50 @@
|
|
|
# clone directory
|
|
|
clone_folder: c:\projects\assimp
|
|
|
|
|
|
+shallow_clone: true
|
|
|
+
|
|
|
# branches to build
|
|
|
branches:
|
|
|
# whitelist
|
|
|
only:
|
|
|
- master
|
|
|
|
|
|
+image:
|
|
|
+ - Visual Studio 2013
|
|
|
+ - Visual Studio 2015
|
|
|
+ - Visual Studio 2017
|
|
|
+
|
|
|
platform:
|
|
|
- - x86
|
|
|
- - x64
|
|
|
+ - x86
|
|
|
+ - x64
|
|
|
|
|
|
-configuration:
|
|
|
- - 14 2015
|
|
|
- - 12 2013
|
|
|
- #- MinGW
|
|
|
- #- 10 2010 # only works for x86
|
|
|
+configuration: Release
|
|
|
|
|
|
-init:
|
|
|
-- if "%platform%" EQU "x64" ( for %%a in (2008 2010 MinGW) do ( if "%Configuration%"=="%%a" (echo "Skipping unsupported configuration" && exit /b 1 ) ) )
|
|
|
+build:
|
|
|
+ parallel: true
|
|
|
+ project: Assimp.sln
|
|
|
|
|
|
install:
|
|
|
-# Make compiler command line tools available
|
|
|
-- call c:\projects\assimp\scripts\appveyor\compiler_setup.bat
|
|
|
-
|
|
|
-build_script:
|
|
|
-- cd c:\projects\assimp
|
|
|
-- if "%platform%" equ "x64" (cmake CMakeLists.txt -DASSIMP_WERROR=ON -G "Visual Studio %Configuration% Win64")
|
|
|
-- if "%platform%" equ "x86" (cmake CMakeLists.txt -DASSIMP_WERROR=ON -G "Visual Studio %Configuration%")
|
|
|
-- if "%platform%" equ "x64" (msbuild /m /p:Configuration=Release /p:Platform="x64" Assimp.sln)
|
|
|
-- if "%platform%" equ "x86" (msbuild /m /p:Configuration=Release /p:Platform="Win32" Assimp.sln)
|
|
|
-
|
|
|
+ - @echo off
|
|
|
+ - set CMAKE_DEFINES -DASSIMP_WERROR=ON
|
|
|
+ - if "%platform%"=="x86" set CMAKE_GENERATOR_NAME=%APPVEYOR_BUILD_WORKER_IMAGE%
|
|
|
+ - if "%platform%"=="x64" set CMAKE_GENERATOR_NAME=%APPVEYOR_BUILD_WORKER_IMAGE% Win64
|
|
|
+ - cmake %CMAKE_DEFINES% -G "%CMAKE_GENERATOR_NAME%"
|
|
|
+
|
|
|
+cache:
|
|
|
+ - code\assimp.dir\%CONFIGURATION%
|
|
|
+
|
|
|
after_build:
|
|
|
- - 7z a assimp.7z c:\projects\assimp\bin\release\* c:\projects\assimp\lib\release\*
|
|
|
-
|
|
|
+ - 7z a assimp.7z %APPVEYOR_BUILD_FOLDER%\bin\%CONFIGURATION%\* %APPVEYOR_BUILD_FOLDER%\lib\%CONFIGURATION%\*
|
|
|
+
|
|
|
+before_test:
|
|
|
+ - xcopy /s "%APPVEYOR_BUILD_FOLDER%\bin\%CONFIGURATION%\" "%APPVEYOR_BUILD_FOLDER%\test\%CONFIGURATION%\"
|
|
|
+
|
|
|
+test:
|
|
|
+ assemblies:
|
|
|
+ only:
|
|
|
+ - test\%CONFIGURATION%\unit.exe
|
|
|
+
|
|
|
artifacts:
|
|
|
- path: assimp.7z
|
|
|
name: assimp_lib
|