appveyor.yml 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # AppVeyor file
  2. # http://www.appveyor.com/docs/appveyor-yml
  3. # clone directory
  4. clone_folder: c:\projects\assimp
  5. # branches to build
  6. branches:
  7. # whitelist
  8. only:
  9. - master
  10. platform:
  11. - x86
  12. - x64
  13. configuration:
  14. - 14 2015
  15. - 12 2013
  16. #- MinGW
  17. #- 10 2010 # only works for x86
  18. init:
  19. - if "%platform%" EQU "x64" ( for %%a in (2008 2010 MinGW) do ( if "%Configuration%"=="%%a" (echo "Skipping unsupported configuration" && exit /b 1 ) ) )
  20. install:
  21. # Make compiler command line tools available
  22. - call c:\projects\assimp\scripts\appveyor\compiler_setup.bat
  23. build_script:
  24. - cd c:\projects\assimp
  25. - if "%platform%" equ "x64" (cmake CMakeLists.txt -G "Visual Studio %Configuration% Win64")
  26. - if "%platform%" equ "x86" (cmake CMakeLists.txt -G "Visual Studio %Configuration%")
  27. - if "%platform%" equ "x64" (msbuild /m /p:Configuration=Release /p:Platform="x64" Assimp.sln)
  28. - if "%platform%" equ "x86" (msbuild /m /p:Configuration=Release /p:Platform="Win32" Assimp.sln)
  29. after_build:
  30. - 7z a assimp.7z c:\projects\assimp\bin\release\* c:\projects\assimp\lib\release\*
  31. artifacts:
  32. - path: assimp.7z
  33. name: assimp_lib