Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanHUnity committed Apr 13, 2020
0 parents commit 7af6cab
Show file tree
Hide file tree
Showing 213 changed files with 14,318 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.manifest text !filter !merge !diff
*.css text !filter !merge !diff
*.js text !filter !merge !diff
*.yml text !filter !merge !diff
*.txt text !filter !merge !diff
*.json text !filter !merge !diff
*.hlsl text !filter !merge !diff
*.asmdef text !filter !merge !diff
*.npmignore text !filter !merge !diff
*.md text !filter !merge !diff
*.cginc text !filter !merge !diff
*.shader text !filter !merge !diff
*.compute text !filter !merge !diff
*.cs text !filter !merge !diff
*.meta text !filter !merge !diff
17 changes: 17 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Peer Review Information:
Information on any code, feature, documentation changes here

## Editor / Package versioning:
**Editor Version Target (i.e. 19.3, 20.1)**: 2019.3

## Dev Testing:
**Tests Added**:
<br>
**Package Tests (Pass/Fail)**:
[X] - Make sure automation passes
<br>
**Core Scenario Tested**:
<br>
**At Risk Areas**:
<br>
**Notes + Expectations**:
37 changes: 37 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
artifacts/**
build/**
**/.vs/**
.build_script/**
node_modules/**
**/Temp/**/*
**/obj/**/*
**/Library/**/*
**/TestProjects/Public/Logs/**
**/TestProjects/PerceptionTest/utr
**/TestProjects/PerceptionTest/Build
**/*Results/**
**/Logs/**
**/.vscode/**
**/.idea/**
.DS_Store
.npmrc
!Documentation~
!.Documentation
npm-debug.log
build.sh.meta
build.bat.meta
.idea/
.Editor/*
upm-ci~/*

*.csproj
*.sln

*.lib*
*.pdb*
**/.Editor
**/upm-ci~
**/.bin
CodeCoverage
/.download
/TestProjects/PerceptionURP/Build
Empty file added .gitmodules
Empty file.
14 changes: 14 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
artifacts/**
build/**
.build_script/**
node_modules/**
TestProjects/**
.DS_Store
.npmrc
.npmignore
.gitignore
.gitlab-ci.yml
build.sh
build.sh.meta
build.bat
build.bat.meta
79 changes: 79 additions & 0 deletions .yamato/promotion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# The Yamato build step `publish` will publish the com.unity.perception package to the `upm-candidates` registry. To see which versions of the package have been published, see
# * https://artifactory.prd.cds.internal.unity3d.com/artifactory/webapp/#/artifacts/browse/tree/General/upm-candidates/com.unity.perception
# * https://bintray.com/unity
#test_editors:
# - version: 2019.1
#test_platforms:
# - name: win
# type: Unity::VM
# image: package-ci/win10:stable
# flavor: b1.large
#---
#{% for editor in test_editors %}
#{% for platform in test_platforms %}
#promotion_test_{{ platform.name }}_{{ editor.version }}:
# name : Promotion Test {{ editor.version }} on {{ platform.name }}
# agent:
# type: {{ platform.type }}
# image: {{ platform.image }}
# flavor: {{ platform.flavor}}
# variables:
# UPMCI_PROMOTION: 1
# commands:
# - npm install upm-ci-utils@latest -g --registry https://api.bintray.com/npm/unity/unity-npm
# - upm-ci package test --unity-version {{ editor.version }}
# artifacts:
# logs:
# paths:
# - "upm-ci~/test-results/**/*"
# dependencies:
# - .yamato/upm-ci.yml#pack
#{% endfor %}
#{% endfor %}
#
#promotion_test_trigger:
# name: Promotion Tests Trigger
# agent:
# type: Unity::VM
# image: package-ci/win10:stable
# flavor: b1.large
# artifacts:
# logs:
# paths:
# - "upm-ci~/test-results/**/*"
# packages:
# paths:
# - "upm-ci~/packages/**/*"
# dependencies:
#{% for editor in test_editors %}
#{% for platform in test_platforms %}
# - .yamato/promotion.yml#promotion_test_{{platform.name}}_{{editor.version}}
#{% endfor %}
#{% endfor %}
#
#promote:
# name: Promote to Production
# agent:
# type: Unity::VM
# image: package-ci/win10:stable
# flavor: b1.large
# variables:
# UPMCI_PROMOTION: 1
# commands:
# - npm install upm-ci-utils@latest -g --registry https://api.bintray.com/npm/unity/unity-npm
# - upm-ci package promote
# triggers:
# tags:
# only:
# - /^(r|R)elease-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
# artifacts:
# artifacts:
# paths:
# - "upm-ci~/packages/*.tgz"
# dependencies:
# - .yamato/upm-ci.yml#pack
#{% for editor in test_editors %}
#{% for platform in test_platforms %}
# - .yamato/promotion.yml#promotion_test_{{ platform.name }}_{{ editor.version }}
#{% endfor %}
#{% endfor %}
143 changes: 143 additions & 0 deletions .yamato/upm-ci-full.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
test_editors:
- version: 2019.3.7f1
test_platforms:
- name: win
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
extra-args: --force-d3d11
standalone-platform: StandaloneWindows64
- name: mac
type: Unity::VM::osx
image: buildfarm/mac:stable
flavor: m1.mac
extra-args: --force-metal
standalone-platform: StandaloneOSX
- name: ubuntu
type: Unity::VM
image: package-ci/ubuntu:latest
flavor: b1.large

suites:
- name: standalone
display_name: standalone
args: --suite=playmode --platform=
- name: editmode
display_name: editmode
args: --suite=playmode --suite=editor --platform=editmode

package_variants:
- name: Perception

projects:
- name: PerceptionHDRP
- name: PerceptionURP
---
{% for variant in package_variants %}
pack_{{ variant.name }}:
name: Pack {{variant.name}} package
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
commands:
- git submodule update --init --recursive
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
- upm-ci package pack --package-path ./com.unity.perception/
artifacts:
packages:
paths:
- "upm-ci~/packages/**/*"
{% endfor %}

{% for variant in package_variants %}
{% for editor in test_editors %}
{% for platform in test_platforms %}
pkg_test_{{variant.name}}_{{ platform.name }}_{{ editor.version }}:
name : Package tests ({{variant.name}} pkg, {{ editor.version }}, {{ platform.name }})
agent:
type: {{ platform.type }}
image: {{ platform.image }}
flavor: {{ platform.flavor}}
commands:
- git submodule update --init --recursive
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
- upm-ci package test -u {{ editor.version }} --package-path ./com.unity.perception --type vetting-tests
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
dependencies:
- .yamato/upm-ci-full.yml#pack_{{ variant.name }}
{% endfor %}
{% endfor %}
{% endfor %}

test_trigger:
name: All Tests
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.small
commands:
- dir
triggers:
branches:
only:
- "/.*/"
recurring:
- branch: master
frequency: daily # Should run between midnight and 6AM UTC
artifacts:
logs:
paths:
- "upm-ci~/test-results/**/*"
packages:
paths:
- "upm-ci~/packages/**/*"
dependencies:
{% for variant in package_variants %}
{% for editor in test_editors %}
{% for platform in test_platforms %}
- .yamato/upm-ci-full.yml#pkg_test_{{variant.name}}_{{platform.name}}_{{editor.version}}
{% endfor %}
{% endfor %}
{% endfor %}

# Disabling trigger of standalone tests which aren't working at the moment
{% for editor in test_editors %}
- .yamato/upm-ci-testprojects.yml#codecoverage_windows_editmode_{{editor.version}}
{% for project in projects %}
- .yamato/upm-ci-testprojects.yml#{{project.name}}_windows_standalone_{{editor.version}}
- .yamato/upm-ci-testprojects.yml#{{project.name}}_linux_standalone_{{editor.version}}
- .yamato/upm-ci-testprojects.yml#{{project.name}}_windows_editmode_{{editor.version}}
- .yamato/upm-ci-testprojects.yml#{{project.name}}_linux_editmode_{{editor.version}}
{% endfor %}
{% endfor %}

{% for variant in package_variants %}
publish:
name: Publish Perception package to internal registry
agent:
type: Unity::VM
image: package-ci/win10:stable
flavor: b1.large
commands:
- npm install upm-ci-utils@stable -g --registry https://api.bintray.com/npm/unity/unity-npm
- upm-ci package publish --package-path com.unity.perception
triggers:
tags:
only:
- /^(r|R)(c|C)-\d+\.\d+\.\d+(-preview(\.\d+)?)?$/
artifacts:
artifacts:
paths:
- "upm-ci~/packages/*.tgz"
dependencies:
- .yamato/upm-ci-full.yml#pack_{{ variant.name }}
{% for editor in test_editors %}
{% for platform in test_platforms %}
- .yamato/upm-ci-full.yml#test_perception_{{ platform.name }}_{{ editor.version }}
{% endfor %}
{% endfor %}
{% endfor %}
Loading

0 comments on commit 7af6cab

Please sign in to comment.