Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 23 additions & 6 deletions .yamato/_copycat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,16 @@ nightly_katana_abv_validate:
skip_checkout: true
commands:
- eval "$COPYCAT_1"
- copycat vendor --revision "${GIT_TAG:-${GIT_BRANCH%%' (tag)'}}" --sha "$GIT_REVISION" "../destination/$MANIFEST"
- echo "[hgunity]" >> $HOME/.hgrc # These 2 lines ask mercurial to run the oncommit formatting hook
- echo "format.oncommit=yes" >> $HOME/.hgrc
- echo "[extensions]" >> $HOME/.hgrc
- echo "purge=" >> $HOME/.hgrc
- git clone git@github.cds.internal.unity3d.com:unity/gfx-sdet-tools.git ../gfx-sdet-tools
- python3 ../gfx-sdet-tools/scripts/srp_test_references_updater.py --srp-version $SRP_VERSION --destination-folder ../destination
- sudo apt-get update
- sudo apt-get -y install python3-pip
- pip3 install unidiff
- copycat vendor --revision "${GIT_TAG:-${GIT_BRANCH%%' (tag)'}}" --sha "$GIT_REVISION" "../destination/$MANIFEST"
- cd ../destination && hg purge --all && cd -
- copycat katana "../destination/$MANIFEST"
triggers:
recurring:
Expand All @@ -35,15 +42,25 @@ vendor:
skip_checkout: true
commands:
- eval "$COPYCAT_1"
- echo "[hgunity]" >> $HOME/.hgrc
- echo "format.oncommit=yes" >> $HOME/.hgrc
- echo "[extensions]" >> $HOME/.hgrc
- echo "purge=" >> $HOME/.hgrc
- git clone git@github.cds.internal.unity3d.com:unity/gfx-sdet-tools.git ../gfx-sdet-tools
- git -C ../gfx-sdet-tools checkout changelog-converter/fix
- sudo apt-get update
- sudo apt-get -y install python3-pip
- pip3 install unidiff
- copycat diff -o ../diff.patch "../destination/$MANIFEST"
- copycat vendor --revision "${GIT_TAG:-${GIT_BRANCH%%' (tag)'}}" --sha "$GIT_REVISION" "../destination/$MANIFEST"
- |
- | # Generates Ono PR ready release notes from the graphics changelogs changes included in the vendoring. Following line is shell syntax for stripping the @unity3d.com part of email address to only get the author handle
author=${YAMATO_OWNER_EMAIL%@unity3d.com}
python3 ../gfx-sdet-tools/scripts/gfx_to_ono_changelog_converter.py --author "$author" --unity-target-branch "$RELEASE_BRANCH"
- python3 ../gfx-sdet-tools/scripts/srp_test_references_updater.py --srp-version $SRP_VERSION --destination-folder ../destination
- copycat ono --no-reviewers "../destination/$MANIFEST" ../diff.patch
- copycat katana "../destination/$MANIFEST"
- cd ../destination && hg purge --all && cd -
# - copycat ono --no-reviewers "../destination/$MANIFEST" ../diff.patch
# - copycat katana "../destination/$MANIFEST"
after:
- cd ../destination && hg status -i
artifacts:
release_notes:
paths:
Expand Down