2016-12-11 19:52:15 -05:00
|
|
|
|
environment:
|
|
|
|
|
DEPS_DIR: c:\\projects\dependencies
|
2017-04-08 18:48:49 -04:00
|
|
|
|
DEPS_BRANCH: master
|
2016-12-11 19:52:15 -05:00
|
|
|
|
ASSETS_DIR: c:\\projects\stk-assets
|
|
|
|
|
APPVEYOR_CACHE_ENTRY_ZIP_ARGS: -t7z -m0=lzma2 -mx=9
|
|
|
|
|
|
|
|
|
|
os: Visual Studio 2015
|
|
|
|
|
clone_depth: 1
|
|
|
|
|
shallow_clone: true
|
|
|
|
|
|
|
|
|
|
platform:
|
2017-04-02 21:20:14 -04:00
|
|
|
|
# - x86
|
|
|
|
|
- x64
|
2017-04-08 18:48:49 -04:00
|
|
|
|
|
2016-12-11 19:52:15 -05:00
|
|
|
|
configuration:
|
|
|
|
|
- Debug
|
|
|
|
|
- Release
|
|
|
|
|
|
|
|
|
|
matrix:
|
|
|
|
|
fast_finish: true
|
|
|
|
|
|
2017-04-02 21:20:14 -04:00
|
|
|
|
#cache:
|
|
|
|
|
# - '%DEPS_DIR%'
|
2016-12-11 19:52:15 -05:00
|
|
|
|
#- '%ASSETS_DIR%'
|
|
|
|
|
|
|
|
|
|
install:
|
|
|
|
|
- ps: >-
|
|
|
|
|
If(!(Test-Path "$env:DEPS_DIR")) {
|
|
|
|
|
Write-Host "Downloading dependencies";
|
2017-04-08 18:48:49 -04:00
|
|
|
|
Start-Process -FilePath "git" -ArgumentList "clone --branch $env:DEPS_BRANCH --single-branch --depth 1 https://github.com/supertuxkart/dependencies.git $env:DEPS_DIR" -Wait;
|
2016-12-11 19:52:15 -05:00
|
|
|
|
}
|
|
|
|
|
Else {
|
|
|
|
|
Write-Host "Updating dependencies";
|
|
|
|
|
Start-Process -FilePath "git" -ArgumentList "fetch --depth 1" -WorkingDirectory "$env:DEPS_DIR" -Wait;
|
|
|
|
|
}
|
|
|
|
|
Get-ChildItem $env:DEPS_DIR | Measure-Object -property length -sum
|
|
|
|
|
#- ps: >-
|
|
|
|
|
#If(!(Test-Path "$env:ASSETS_DIR")) {
|
|
|
|
|
# Write-Host "Downloading assets";
|
|
|
|
|
# Start-Process -FilePath "svn" -ArgumentList "checkout https://svn.code.sf.net/p/supertuxkart/code/stk-assets $env:ASSETS_DIR" -Wait;
|
|
|
|
|
#}
|
|
|
|
|
#Else {
|
|
|
|
|
# Write-Host "Updating assets";
|
|
|
|
|
# Start-Process -FilePath "svn" -ArgumentList "update" -WorkingDirectory "$env:ASSETS_DIR" -Wait;
|
|
|
|
|
#}
|
|
|
|
|
#Get-ChildItem $env:ASSETS_DIR | Measure-Object -property length -sum
|
|
|
|
|
|
|
|
|
|
before_build:
|
2017-10-16 23:04:28 -04:00
|
|
|
|
- ps: Copy-Item "${env:DEPS_DIR}\windows_64bit\dependencies" c:\projects\stk-code\dependencies-64bit –Recurse
|
2016-12-11 19:52:15 -05:00
|
|
|
|
- cmd: |
|
|
|
|
|
md build
|
|
|
|
|
cd build
|
2017-04-02 21:20:14 -04:00
|
|
|
|
if "%platform%"=="x64" set CMAKE_GENERATOR_NAME="Visual Studio 14 2015 Win64"
|
2016-12-11 19:52:15 -05:00
|
|
|
|
cmake -G %CMAKE_GENERATOR_NAME% -DCMAKE_BUILD_TYPE="%configuration%" .. -DCHECK_ASSETS=OFF
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
parallel: true
|
|
|
|
|
project: build\ALL_BUILD.vcxproj
|