-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update libwebrtc m84 * fix compile error * fix agent image for build libwebrtc * change url for m84 * add unityvideodecoder for test * fix pip access * add envver of vs2017 path (cherry picked from commit 2786e3b) * invoke ci * fix lint * fix: fixed pack error on yamato (#144) * fixed pack error on yamato * fix build error on macos * fixed build error on macos * pip is not found Co-authored-by: Takashi KANNAN <[email protected]>
- Loading branch information
Showing
23 changed files
with
152 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,8 +74,6 @@ pack_{{ package.name }}: | |
flavor: b1.large | ||
commands: | ||
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }} | ||
- unzip -qq -o macos_plugin* | ||
- rm macos_plugin* | ||
- upm-ci package pack | ||
artifacts: | ||
{{ package.name }}_package: | ||
|
@@ -133,7 +131,7 @@ test_{{ package.name }}_{{ param.platform }}_{{ param.backend }}_{{ platform.nam | |
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }} | ||
- git clone [email protected]:unity/utr.git | ||
- rm -Rf ./utr/.git | ||
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "bash -lc 'pip3 install --user unity-downloader-cli --extra-index-url https://artifactory.eu-cph-1.unityops.net/api/pypi/common-python/simple'" | ||
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "bash -lc 'pip3 install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade --user'" | ||
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r ../com.unity.webrtc/ bokken@$BOKKEN_DEVICE_IP:~/com.unity.webrtc | ||
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -pr ./utr/ bokken@$BOKKEN_DEVICE_IP:~/com.unity.webrtc/ | ||
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP '/Users/bokken/Library/Python/3.7/bin/unity-downloader-cli -u {{ editor_mac_version }} -c editor --wait --published' | ||
|
@@ -158,6 +156,79 @@ test_{{ package.name }}_{{ param.platform }}_{{ param.backend }}_{{ platform.nam | |
{% endfor %} | ||
|
||
|
||
{% endif -%} | ||
{% endfor %} | ||
|
||
{% for platform in platforms %} | ||
{% if platform.name != "macos" -%} | ||
|
||
{% for editor in editors %} | ||
codecoverage_{{ package.name }}_{{ platform.name }}_{{ editor.version }}: | ||
name: Codecoverage {{ package.packagename }} {{ platform.name }} {{ editor.version }} | ||
agent: | ||
type: {{ platform.type }} | ||
image: {{ platform.image }} | ||
flavor: {{ platform.flavor }} | ||
commands: | ||
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }} | ||
- upm-ci package test -u {{ editor.version }} --enable-code-coverage --code-coverage-options "generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:-UnityEngine.*,+Unity.WebRTC" | ||
triggers: | ||
branches: | ||
only: | ||
- "/.*/" | ||
except: | ||
- "master" | ||
artifacts: | ||
{{ package.name }}_{{ editor.version }}_{{ platform.name }}_coverage_results: | ||
paths: | ||
- "upm-ci~/test-results/**" | ||
dependencies: | ||
- .yamato/upm-ci-{{ package.name }}-packages.yml#pack_{{ package.name }} | ||
{% endfor %} | ||
|
||
{% else -%} | ||
|
||
{% for editor in editors %} | ||
codecoverage_{{ package.name }}_{{ platform.name }}_{{ editor.version }}: | ||
name: Codecoverage {{ package.packagename }} {{ platform.name }} {{ editor.version }} | ||
agent: | ||
type: {{ platform.type }} | ||
image: {{ platform.image }} | ||
flavor: {{ platform.flavor }} | ||
commands: | ||
- | | ||
cd ../ | ||
ls com.unity.webrtc/upm-ci~/packages/com.unity.webrtc-*.tgz | xargs tar xzvf | ||
cp -rf package/ com.unity.webrtc | ||
cd com.unity.webrtc | ||
- brew install node | ||
- npm install upm-ci-utils@{{ upm.package_version }} -g --registry {{ upm.registry_url }} | ||
- git clone [email protected]:unity/utr.git | ||
- rm -Rf ./utr/.git | ||
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP "bash -lc 'pip3 install unity-downloader-cli --index-url https://artifactory.prd.it.unity3d.com/artifactory/api/pypi/pypi/simple --upgrade --user'" | ||
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r ../com.unity.webrtc/ bokken@$BOKKEN_DEVICE_IP:~/com.unity.webrtc | ||
- scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -pr ./utr/ bokken@$BOKKEN_DEVICE_IP:~/com.unity.webrtc/ | ||
- ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP '/Users/bokken/Library/Python/3.7/bin/unity-downloader-cli -u {{ editor_mac_version }} -c editor --wait --published' | ||
- | | ||
ssh -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" bokken@$BOKKEN_DEVICE_IP 'cd ~/com.unity.webrtc/WebRTC~ && ~/com.unity.webrtc/utr/utr --suite=editor --suite=playmode --testproject=/Users/bokken/com.unity.webrtc/WebRTC~ --editor-location=/Users/bokken/.Editor --artifacts_path=/Users/bokken/com.unity.webrtc/WebRTC~/test-results --extra-editor-arg="-enablePackageManagerTraces" --enable-code-coverage --coverage-results-path=/Users/bokken/com.unity.webrtc/WebRTC~/test-results --coverage-options="generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:-UnityEngine.*,+Unity.WebRTC"' | ||
UTR_RESULT=$? | ||
mkdir -p upm-ci~/test-results/ | ||
scp -i ~/.ssh/id_rsa_macmini -o "StrictHostKeyChecking=no" -r bokken@$BOKKEN_DEVICE_IP:/Users/bokken/com.unity.webrtc/WebRTC~/test-results/ upm-ci~/test-results/ | ||
exit $UTR_RESULT | ||
triggers: | ||
branches: | ||
only: | ||
- "/.*/" | ||
except: | ||
- "master" | ||
artifacts: | ||
{{ package.name }}_{{ editor.version }}_{{ platform.name }}_coverage_results: | ||
paths: | ||
- "upm-ci~/test-results/**" | ||
dependencies: | ||
- .yamato/upm-ci-{{ package.name }}-packages.yml#pack_{{ package.name }} | ||
{% endfor %} | ||
|
||
{% endif -%} | ||
{% endfor %} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#include "pch.h" | ||
#include "UnityVideoDecoderFactory.h" | ||
|
||
namespace unity | ||
{ | ||
namespace webrtc | ||
{ | ||
UnityVideoDecoderFactory::UnityVideoDecoderFactory() : internal_decoder_factory_(new webrtc::InternalDecoderFactory()) | ||
{ | ||
} | ||
|
||
std::vector<webrtc::SdpVideoFormat> UnityVideoDecoderFactory::GetSupportedFormats() const | ||
{ | ||
return { webrtc::CreateH264Format(webrtc::H264::kProfileConstrainedBaseline, webrtc::H264::kLevel5_1, "1") }; | ||
} | ||
|
||
std::unique_ptr<webrtc::VideoDecoder> UnityVideoDecoderFactory::CreateVideoDecoder(const webrtc::SdpVideoFormat & format) | ||
{ | ||
return internal_decoder_factory_->CreateVideoDecoder(format); | ||
} | ||
|
||
} // namespace webrtc | ||
} // namespace unity |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#pragma once | ||
|
||
namespace unity | ||
{ | ||
namespace webrtc | ||
{ | ||
namespace webrtc = ::webrtc; | ||
|
||
// This class is only used for status testing. | ||
class UnityVideoDecoderFactory : public webrtc::VideoDecoderFactory | ||
{ | ||
public: | ||
std::vector<webrtc::SdpVideoFormat> GetSupportedFormats() const override; | ||
std::unique_ptr<webrtc::VideoDecoder> CreateVideoDecoder(const webrtc::SdpVideoFormat& format) override; | ||
UnityVideoDecoderFactory(); | ||
private: | ||
const std::unique_ptr<VideoDecoderFactory> internal_decoder_factory_; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.