Skip to content

Commit

Permalink
Merge branch 'main' into openupm
Browse files Browse the repository at this point in the history
  • Loading branch information
atteneder committed Apr 9, 2024
2 parents cb68834 + dd284af commit 9a331fe
Show file tree
Hide file tree
Showing 788 changed files with 59,022 additions and 382 deletions.
36 changes: 36 additions & 0 deletions .github/codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
codecov:
require_ci_to_pass: false
notify:
wait_for_ci: true

coverage:
precision: 2
round: down
range: "50...70"
status:
patch: true
default_rules:
flag_coverage_not_uploaded_behavior: exclude
project:
default:
target: auto
# Threshold used for the PR Check
threshold: 0.5%
base: auto
if_ci_failed: success
informational: false
only_pulls: true

# PR Comment configuration
comment:
layout: "reach,diff,flags,files"
behavior: default
require_changes: false
require_base: false
require_head: false
# Set this to the number of coverage jobs run in the PR
after_n_builds: 1

flag_management:
default_rules:
carryforward: true
13 changes: 13 additions & 0 deletions .yamato/code-format-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% metadata_file .yamato/package.metafile -%}
---
code_format_check:
name : Code Format check
agent:
{% assign agent = agents.ubuntu-small -%}
type: {{ agent.type }}
image: {{ agent.image }}
flavor: {{ agent.flavor}}
commands:
- git clone --depth 1 --branch stable https://github.cds.internal.unity3d.com/unity/unity-meta.git
- mv unity-meta ~
- perl ~/unity-meta/Tools/Format/format.pl --showfiles --dry-run .
44 changes: 0 additions & 44 deletions .yamato/environments.metafile

This file was deleted.

26 changes: 26 additions & 0 deletions .yamato/package-pack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{% metadata_file .yamato/package.metafile -%}
---
pack:
name: Pack
agent:
{% assign agent = agents.ubuntu -%}
type: {{ agent.type }}
image: {{ agent.image }}
flavor: {{ agent.flavor}}
source:
skip_checkout: true
commands:
- |
mkdir Packages
pushd Packages
git clone {% if platform.name == "win" %}"%GIT_REPOSITORY_URL%"{% else %}"$GIT_REPOSITORY_URL"{% endif %} --no-checkout gltfast
cd gltfast
git fetch origin {% if platform.name == "win" %}"%GIT_REVISION%"{% else %}"$GIT_REVISION"{% endif %}
git checkout -f --detach {% if platform.name == "win" %}"%GIT_REVISION%"{% else %}"$GIT_REVISION"{% endif %}
popd
- npm install upm-ci-utils@stable -g --registry {{ registry.npm }}
- upm-ci package pack --package-path Packages/gltfast
artifacts:
packages:
paths:
- "upm-ci~/packages/**/*"
187 changes: 187 additions & 0 deletions .yamato/package-player-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
{% metadata_file .yamato/package.metafile -%}
---
{% for editor in player_test_editors -%}
{% for platform in player_test_platforms -%}
{% if platform.build -%}
{% assign agent = agents[platform.build] -%}
{% if agent.os == "win" -%}{% assign os = os_variables.win -%}{% else -%}{% assign os = os_variables.unix -%}{% endif -%}
build_{{ platform.name }}_{{ editor.version }}:
name : Build {{ editor.version }} {{ platform.name }} Player
agent:
type: {{ agent.type }}
image: {{ agent.image }}
flavor: {{ agent.flavor}}
source:
skip_checkout: true
commands:
- |
mkdir Packages
pushd Packages
git clone {{ os.git_url }} --no-checkout gltfast
cd gltfast
git fetch origin {{ os.git_revision }}
git checkout -f --detach {{ os.git_revision }}
popd
- mkdir Assets
{% for asset_set in asset_sets -%}
- |
pushd Assets
git clone {{ asset_set.git_uri }} --no-checkout {{ asset_set.name }}
cd {{ asset_set.name }}
git fetch origin {{ asset_set.git_revision }}
git checkout -f --detach {{ asset_set.git_revision }}
popd
{% endfor -%}

- npm install upm-ci-utils@stable -g --registry {{ registry.npm }}
- |
{% if platform.windows_host -%}
set GLTF_TEST_ASSET_DIR={{ os.yamato_source_dir }}\Assets
{% else -%}
export GLTF_TEST_ASSET_DIR="{{ os.yamato_source_dir }}/Assets"
{% endif -%}
upm-ci package test -u {{ editor.version }} --platform {{ platform.id }} {% if platform.upm_ci_params %}{{ platform.upm_ci_params }}{% endif %} --package-path Packages/gltfast --extra-create-project-arg=-upmNoDefaultPackages --player-build-path upm-ci~/player/{{ platform.id }} --build-only
artifacts:
logs:
paths:
- "**/*.log"
player:
paths:
- "upm-ci~/player/{{ platform.id }}/**"
test-results:
paths:
- "**/test-results/**"
dependencies:
- .yamato/package-pack.yml#pack
{% endif -%}

{% if platform.run -%}
{% assign agent = agents[platform.run] -%}
{% if agent.os == "win" -%}{% assign os = os_variables.win -%}{% else -%}{% assign os = os_variables.unix -%}{% endif -%}
run_{{ platform.name }}_{{ editor.version }}:
name : Run {{ editor.version }} {{ platform.name }} Player Tests
agent:
type: {{ agent.type }}
image: {{ agent.image }}
flavor: {{ agent.flavor}}
source:
skip_checkout: true
commands:
- |
mkdir Packages
pushd Packages
git clone {{ os.git_url }} --no-checkout gltfast
cd gltfast
git fetch origin {{ os.git_revision }}
git checkout -f --detach {{ os.git_revision }}
popd
- mkdir Assets
{% for asset_set in asset_sets -%}
- |
pushd Assets
git clone {{ asset_set.git_uri }} --no-checkout {{ asset_set.name }}
cd {{ asset_set.name }}
git fetch origin {{ asset_set.git_revision }}
git checkout -f --detach {{ asset_set.git_revision }}
popd
{% endfor -%}
- npm install upm-ci-utils@stable -g --registry {{ registry.npm }}
- |
{% if platform.name == "win" -%}
set GLTF_TEST_ASSET_DIR={{ os.yamato_source_dir }}\Assets
{% else -%}
export GLTF_TEST_ASSET_DIR="{{ os.yamato_source_dir }}/Assets"
{% endif -%}
upm-ci package test -u {{ editor.version }} --platform {{ platform.id }} --player-build-path upm-ci~/player/{{ platform.id }} --package-path Packages/gltfast --extra-create-project-arg=-upmNoDefaultPackages
artifacts:
logs:
paths:
- "**/*.log"
test-results:
paths:
- "**/test-results/**"
dependencies:
- .yamato/package-pack.yml#pack
- .yamato/package-player-test.yml#build_{{ platform.name }}_{{ editor.version }}
{% endif -%}

{% if platform.build_and_run -%}
{% assign agent = agents[platform.build_and_run] -%}
{% if agent.os == "win" -%}{% assign os = os_variables.win -%}{% else -%}{% assign os = os_variables.unix -%}{% endif -%}
build_and_run_{{ platform.name }}_{{ editor.version }}:
name : Build and run {{ editor.version }} {{ platform.name }} Player Tests
agent:
type: {{ agent.type }}
image: {{ agent.image }}
flavor: {{ agent.flavor}}
source:
skip_checkout: true
commands:
- |
mkdir Packages
pushd Packages
git clone {{ os.git_url }} --no-checkout gltfast
cd gltfast
git fetch origin {{ os.git_revision }}
git checkout -f --detach {{ os.git_revision }}
popd
- mkdir Assets
{% for asset_set in asset_sets -%}
- |
pushd Assets
git clone {{ asset_set.git_uri }} --no-checkout {{ asset_set.name }}
cd {{ asset_set.name }}
git fetch origin {{ asset_set.git_revision }}
git checkout -f --detach {{ asset_set.git_revision }}
popd
{% endfor -%}

- npm install upm-ci-utils@stable -g --registry {{ registry.npm }}
- |
{% if platform.name == "win" -%}
set GLTF_TEST_ASSET_DIR={{ os.yamato_source_dir }}\Assets
{% else -%}
export GLTF_TEST_ASSET_DIR="{{ os.yamato_source_dir }}/Assets"
{% endif -%}
upm-ci package test -u {{ editor.version }} --platform {{ platform.id }} --package-path Packages/gltfast --extra-create-project-arg=-upmNoDefaultPackages
artifacts:
logs:
paths:
- "**/*.log"
test-results:
paths:
- "**/test-results/**"
dependencies:
- .yamato/package-pack.yml#pack
{% endif -%}
{% endfor -%}
{% endfor -%}

player_test_all:
name: _Player Tests All
dependencies:
{% for editor in player_test_editors -%}
{% for platform in player_test_platforms -%}
{% if platform.run -%}
- .yamato/package-player-test.yml#run_{{ platform.name }}_{{ editor.version }}
{% elsif platform.build_and_run -%}
- .yamato/package-player-test.yml#build_and_run_{{ platform.name }}_{{ editor.version }}
{% endif -%}
{% endfor -%}
{% endfor -%}

player_test_pr:
name: _Player Test subset for PRs
dependencies:
{% for platform in player_test_platforms -%}
{% assign editor_index = forloop.index0 | modulo: player_test_editors.size -%}
{% assign editor = player_test_editors[editor_index] -%}
{% if platform.run -%}
- .yamato/package-player-test.yml#run_{{ platform.name }}_{{ editor.version }}
{% elsif platform.build_and_run -%}
- .yamato/package-player-test.yml#build_and_run_{{ platform.name }}_{{ editor.version }}
{% endif -%}
{% endfor -%}
74 changes: 74 additions & 0 deletions .yamato/package-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{% metadata_file .yamato/package.metafile -%}
---
{% assign os = os_variables.unix -%}
{% assign agent = agents.ubuntu-small -%}

publish_dry_run:
name: Dry Run Publish to Internal Registry
agent:
type: {{ agent.type }}
image: {{ agent.image }}
flavor: {{ agent.flavor}}
source:
skip_checkout: true
commands:
- |
mkdir Packages
pushd Packages
git clone {{ os.git_url }} --no-checkout gltfast
cd gltfast
git fetch origin {{ os.git_revision }}
git checkout -f --detach {{ os.git_revision }}
popd
- npm install upm-ci-utils@stable -g --registry {{ registry.npm }}
- upm-ci package publish --package-path Packages/gltfast --dry-run
triggers:
tags:
only:
- /^[Rr][Cc]-(0\.\d+\.\d+|[1-9]\d*\.\d+\.\d+(-preview(\.\d+)?|-exp(\.\d+|-\w+\.\d+)|-pre\.\d+)?)$/
artifacts:
artifacts:
paths:
- "upm-ci~/packages/*.tgz"
logs:
paths:
- "upm-ci~/upm-ci.log"
dependencies:
- .yamato/package-pack.yml#pack
- .yamato/package-test.yml#tests_all


publish:
name: Publish to Internal Registry
agent:
{% assign agent = agents.ubuntu-small -%}
type: {{ agent.type }}
image: {{ agent.image }}
flavor: {{ agent.flavor}}
source:
skip_checkout: true
commands:
- |
mkdir Packages
pushd Packages
git clone {{ os.git_url }} --no-checkout gltfast
cd gltfast
git fetch origin {{ os.git_revision }}
git checkout -f --detach {{ os.git_revision }}
popd
- npm install upm-ci-utils@stable -g --registry {{ registry.npm }}
- upm-ci package publish --package-path Packages/gltfast
triggers:
tags:
only:
- /^[Rr][Cc]-(0\.\d+\.\d+|[1-9]\d*\.\d+\.\d+(-preview(\.\d+)?|-exp(\.\d+|-\w+\.\d+)|-pre\.\d+)?)$/
artifacts:
artifacts:
paths:
- "upm-ci~/packages/*.tgz"
logs:
paths:
- "upm-ci~/upm-ci.log"
dependencies:
- .yamato/package-pack.yml#pack
- .yamato/package-test.yml#tests_all

0 comments on commit 9a331fe

Please sign in to comment.