2016-08-19 22:32:27 +00:00
|
|
|
platform:
|
|
|
|
- x64
|
2017-02-11 06:57:32 +00:00
|
|
|
- x86
|
2016-08-19 22:32:27 +00:00
|
|
|
|
|
|
|
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
|
2017-01-09 17:02:10 +00:00
|
|
|
- set GYP_DEFINES='target_arch="%PLATFORM%"'
|
2016-08-19 22:32:27 +00:00
|
|
|
- depot_tools\gclient sync
|
2017-01-09 17:02:10 +00:00
|
|
|
- if [%PLATFORM%] == [x64] (
|
|
|
|
set "output_directory=%CONFIGURATION%_x64"
|
|
|
|
) else (
|
|
|
|
set "output_directory=%CONFIGURATION%"
|
|
|
|
)
|
2016-08-19 22:32:27 +00:00
|
|
|
|
|
|
|
build_script:
|
|
|
|
- cd src
|
2017-01-09 17:02:10 +00:00
|
|
|
- ..\depot_tools\ninja -C "out\%OUTPUT_DIRECTORY%" -k 100
|
|
|
|
- copy "out\%OUTPUT_DIRECTORY%\packager.exe" packager-win.exe
|
2016-08-19 22:32:27 +00:00
|
|
|
|
|
|
|
test_script:
|
2017-01-09 17:02:10 +00:00
|
|
|
- for %%f in ("out\%OUTPUT_DIRECTORY%\*_*test.exe") do (%%f || exit /b 666)
|
|
|
|
- python "out\%OUTPUT_DIRECTORY%\packager_test.py" -v
|
2016-08-19 22:32:27 +00:00
|
|
|
|
|
|
|
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+\\./"
|