.appveyor.yml 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. environment:
  2. DEPS_DIR: c:\\projects\dependencies
  3. DEPS_BRANCH: master
  4. ASSETS_DIR: c:\\projects\stk-assets
  5. APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma2 -mx=9
  6. IRC_NOTIFY_SCRIPT: c:\\projects\stk-code\tools\appveyor-irc-notify.py
  7. os: Visual Studio 2015
  8. clone_depth: 1
  9. shallow_clone: true
  10. platform:
  11. # - x86
  12. - x64
  13. configuration:
  14. - Debug
  15. - Release
  16. matrix:
  17. fast_finish: true
  18. #cache:
  19. # - '%DEPS_DIR%'
  20. #- '%ASSETS_DIR%'
  21. install:
  22. - ps: >-
  23. If(!(Test-Path "$env:DEPS_DIR")) {
  24. Write-Host "Downloading dependencies";
  25. Start-Process -FilePath "git" -ArgumentList "clone --branch $env:DEPS_BRANCH --single-branch --depth 1 https://github.com/supertuxkart/dependencies.git $env:DEPS_DIR" -Wait;
  26. }
  27. Else {
  28. Write-Host "Updating dependencies";
  29. Start-Process -FilePath "git" -ArgumentList "fetch --depth 1" -WorkingDirectory "$env:DEPS_DIR" -Wait;
  30. }
  31. Get-ChildItem $env:DEPS_DIR | Measure-Object -property length -sum
  32. #- ps: >-
  33. #If(!(Test-Path "$env:ASSETS_DIR")) {
  34. # Write-Host "Downloading assets";
  35. # Start-Process -FilePath "svn" -ArgumentList "checkout https://svn.code.sf.net/p/supertuxkart/code/stk-assets $env:ASSETS_DIR" -Wait;
  36. #}
  37. #Else {
  38. # Write-Host "Updating assets";
  39. # Start-Process -FilePath "svn" -ArgumentList "update" -WorkingDirectory "$env:ASSETS_DIR" -Wait;
  40. #}
  41. #Get-ChildItem $env:ASSETS_DIR | Measure-Object -property length -sum
  42. before_build:
  43. - ps: Copy-Item "${env:DEPS_DIR}\windows_64bit\dependencies" c:\projects\stk-code\dependencies –Recurse
  44. - cmd: |
  45. md build
  46. cd build
  47. if "%platform%"=="x64" set CMAKE_GENERATOR_NAME="Visual Studio 14 2015 Win64"
  48. cmake -G %CMAKE_GENERATOR_NAME% -DCMAKE_BUILD_TYPE="%configuration%" .. -DCHECK_ASSETS=OFF
  49. build:
  50. parallel: true
  51. project: build\ALL_BUILD.vcxproj
  52. on_success:
  53. - "python %IRC_NOTIFY_SCRIPT% supertuxkart [{author}:{branch}] {short_commit}: {message} {color_green}Succeeded,Details: {build_url},Commit: {commit_url}"
  54. on_failure:
  55. - "python %IRC_NOTIFY_SCRIPT% supertuxkart [{author}:{branch}] {short_commit}: {message} {color_red}Failed,Details: {build_url},Commit: {commit_url}"