2016-02-18 18:48:46 +00:00
|
|
|
language: cpp
|
|
|
|
|
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
|
|
|
env:
|
2017-12-11 22:06:50 +00:00
|
|
|
- BUILD_TYPE=Debug LIBPACKAGER_TYPE=static_library
|
|
|
|
- BUILD_TYPE=Debug LIBPACKAGER_TYPE=shared_library
|
|
|
|
- BUILD_TYPE=Release LIBPACKAGER_TYPE=static_library
|
|
|
|
- BUILD_TYPE=Release LIBPACKAGER_TYPE=shared_library
|
2016-02-18 18:48:46 +00:00
|
|
|
|
|
|
|
before_install:
|
|
|
|
- test -n $CC && unset CC
|
|
|
|
- test -n $CXX && unset CXX
|
|
|
|
|
|
|
|
install:
|
|
|
|
- git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git ../depot_tools/
|
|
|
|
- export PATH="$PATH:$PWD/../depot_tools"
|
|
|
|
|
|
|
|
before_script:
|
|
|
|
- mkdir src
|
|
|
|
- shopt -s extglob dotglob
|
|
|
|
- mv !(src) src
|
2016-05-17 00:41:02 +00:00
|
|
|
- gclient config https://github.com/google/shaka-packager.git --name=src --unmanaged
|
2017-12-11 22:06:50 +00:00
|
|
|
- export GYP_DEFINES="libpackager_type=${LIBPACKAGER_TYPE}"
|
2016-02-18 18:48:46 +00:00
|
|
|
- gclient sync
|
|
|
|
- cd src
|
2016-08-19 22:32:27 +00:00
|
|
|
- ninja -C out/${BUILD_TYPE} -k 100
|
2016-02-18 18:48:46 +00:00
|
|
|
|
|
|
|
script:
|
2017-12-11 22:06:50 +00:00
|
|
|
- if [ ${LIBPACKAGER_TYPE} == "shared_library" ] && [ ${TRAVIS_OS_NAME} == "osx" ]; then
|
|
|
|
export DYLD_FALLBACK_LIBRARY_PATH=./out/${BUILD_TYPE};
|
|
|
|
fi
|
2016-02-18 18:48:46 +00:00
|
|
|
- ( find out/${BUILD_TYPE} -name "*_*test" | while read i ; do $i || exit ; done )
|
2017-12-11 22:06:50 +00:00
|
|
|
- out/${BUILD_TYPE}/packager_test.py -v --libpackager_type=${LIBPACKAGER_TYPE}
|
2016-02-18 18:48:46 +00:00
|
|
|
|
2016-03-02 18:07:41 +00:00
|
|
|
before_deploy:
|
2017-12-11 22:06:50 +00:00
|
|
|
- rm -rf deploy
|
|
|
|
- mkdir deploy
|
|
|
|
- |
|
2019-12-26 06:43:27 +00:00
|
|
|
mv out/${BUILD_TYPE}/packager deploy/packager-${TRAVIS_OS_NAME}
|
|
|
|
mv out/${BUILD_TYPE}/mpd_generator deploy/mpd_generator-${TRAVIS_OS_NAME}
|
|
|
|
tar -zcf pssh-box.py.tar.gz -C out/${BUILD_TYPE} pyproto pssh-box.py
|
|
|
|
mv pssh-box.py.tar.gz deploy/pssh-box-${TRAVIS_OS_NAME}.py.tar.gz
|
2016-03-02 18:07:41 +00:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
provider: releases
|
|
|
|
api_key:
|
2019-12-26 06:43:27 +00:00
|
|
|
secure: Ya5ptzB+UXESFhM8YKVRGwtfksPqCEe3XxHLLCwSDRscvs9Cck6M7Y4IGbEVfvfM8Wpb7Eyt2UoYgAsrugj9K6Y103NZ/Vv2ZJrdWYIi52QTye7GFtSEgImHdlM8LOjXbbh/KroWZFCi+ZxRcFDROaXaTM+P/xvYHeopLwEWs7g=
|
2017-12-11 22:06:50 +00:00
|
|
|
file_glob: true
|
|
|
|
file: deploy/*
|
2016-03-02 18:07:41 +00:00
|
|
|
skip_cleanup: true
|
|
|
|
on:
|
|
|
|
tags: true
|
2019-12-26 06:43:27 +00:00
|
|
|
condition: ${BUILD_TYPE} = Release && ${LIBPACKAGER_TYPE} == static_library
|
2016-03-02 18:07:41 +00:00
|
|
|
|
2016-02-18 18:48:46 +00:00
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- master
|
|
|
|
- "/^v\\d+\\./"
|