shaka-packager/appveyor.yml

54 lines
1.2 KiB
YAML
Raw Normal View History

platform:
- x64
- x86
configuration:
- Debug
- Release
environment:
matrix:
- language: cpp
clone_folder: c:\projects\shaka-packager\src
install:
- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ..\depot_tools\
before_build:
- cd ..
- depot_tools\gclient config https://github.com/google/shaka-packager.git --name=src --unmanaged
- set GYP_DEFINES='target_arch="%PLATFORM%"'
- depot_tools\gclient sync
- if [%PLATFORM%] == [x64] (
set "output_directory=%CONFIGURATION%_x64"
) else (
set "output_directory=%CONFIGURATION%"
)
build_script:
- cd src
- ..\depot_tools\ninja -C "out\%OUTPUT_DIRECTORY%" -k 100
- copy "out\%OUTPUT_DIRECTORY%\packager.exe" packager-win.exe
test_script:
- for %%f in ("out\%OUTPUT_DIRECTORY%\*_*test.exe") do (%%f || exit /b 666)
- python "out\%OUTPUT_DIRECTORY%\packager_test.py" -v
artifacts:
- path: packager-win.exe
deploy:
provider: GitHub
auth_token:
secure: 0XTjRSDCHGH24WSnQRRizvhnaxK8gbq1cfivyuKQRrfwGPm7wpgiPL9SlyQ0aNdY
on:
appveyor_repo_tag: true
platform: x64
configuration: Release
branches:
only:
- master
- "/^v\\d+\\./"