Skip to content

Commit 5c72390

Browse files
author
Mark Visser
authored
Merge pull request #467 from Unity-Technologies/yamato-ci_DCC-230
Setup for Yamato CI (DCC-230)
2 parents 611b232 + 7c13b5b commit 5c72390

File tree

142 files changed

+119
-51
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+119
-51
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,3 @@ TestProjects/FbxTests/Logs/*
7979
com.unity.formats.fbx/Editor/Integrations~/**
8080
com.unity.formats.fbx/CHANGELOG.md
8181
com.unity.formats.fbx/LICENSE.md
82-
com.unity.formats.fbx/package.json
83-

.yamato/upm-ci.yml

Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
editors:
2+
- version: 2018.3
3+
- version: 2019.1
4+
- version: 2019.2
5+
platforms:
6+
- name: win
7+
type: Unity::VM
8+
image: package-ci/win10:stable
9+
flavor: m1.large
10+
- name: mac
11+
type: Unity::VM::osx
12+
image: buildfarm/mac:stable
13+
flavor: m1.mac
14+
---
15+
pack:
16+
name: Pack
17+
agent:
18+
type: Unity::VM
19+
image: package-ci/ubuntu:latest
20+
flavor: m1.large
21+
commands:
22+
- ./build.sh
23+
- npm install -g upm-ci-utils@latest --registry https://api.bintray.com/npm/unity/unity-npm
24+
- upm-ci package pack --package-path com.unity.formats.fbx
25+
artifacts:
26+
packages:
27+
paths:
28+
- "upm-ci~/packages/**/*"
29+
build:
30+
paths:
31+
- "com.unity.formats.fbx/*"
32+
33+
{% for editor in editors %}
34+
{% for platform in platforms %}
35+
test_{{ platform.name }}_{{ editor.version }}:
36+
name : Test version {{ editor.version }} on {{ platform.name }}
37+
agent:
38+
type: {{ platform.type }}
39+
image: {{ platform.image }}
40+
flavor: {{ platform.flavor}}
41+
commands:
42+
- git clone --branch dev --single-branch [email protected]:upm-packages/project-templates/upm-template-utils.git upm-ci-utils
43+
- npm install upm-ci-utils/ -g
44+
- upm-ci package test --unity-version {{ editor.version }} --package-path com.unity.formats.fbx
45+
artifacts:
46+
logs.zip:
47+
paths:
48+
- "upm-ci~/logs/**/*"
49+
- "upm-ci~/test-results/**/*"
50+
artifacts.zip:
51+
paths:
52+
- "upm-ci~/packages/**/*"
53+
- "upm-ci~/templates/**/*"
54+
dependencies:
55+
- .yamato/upm-ci.yml#pack
56+
{% endfor %}
57+
{% endfor %}
58+
59+
test_trigger:
60+
name: Tests Trigger
61+
agent:
62+
type: Unity::VM
63+
image: package-ci/win10:stable
64+
flavor: m1.large
65+
commands:
66+
- dir
67+
triggers:
68+
branches:
69+
only:
70+
- "/.*/"
71+
except:
72+
- master
73+
artifacts:
74+
logs:
75+
paths:
76+
- "upm-ci~/test-results/**/*"
77+
packages:
78+
paths:
79+
- "upm-ci~/packages/**/*"
80+
dependencies:
81+
- .yamato/upm-ci.yml#pack
82+
{% for editor in editors %}
83+
{% for platform in platforms %}
84+
- .yamato/upm-ci.yml#test_{{platform.name}}_{{editor.version}}
85+
{% endfor %}
86+
{% endfor %}
87+
88+
publish:
89+
name: Publish
90+
agent:
91+
type: Unity::VM
92+
image: package-ci/win10:latest
93+
flavor: m1.large
94+
name: Runner
95+
commands:
96+
- npm install upm-ci-utils -g --registry https://api.bintray.com/npm/unity/unity-npm
97+
- upm-ci package publish
98+
triggers:
99+
tags:
100+
only:
101+
- /^(v|V)[0-9]+.[0-9]+.[0-9]+/
102+
artifacts:
103+
logs.zip:
104+
paths:
105+
- "upm-ci~/logs/**/*"
106+
- "upm-ci~/test-results/**/*"
107+
Package.zip:
108+
paths:
109+
- "upm-ci~/package/*.tgz"
110+
dependencies:
111+
{% for editor in editors %}
112+
{% for platform in platforms %}
113+
- .yamato/upm-ci.yml#test_{{ platform.name }}_{{ editor.version }}
114+
{% endfor %}
115+
{% endfor %}

CMakeLists.txt

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,6 @@ MESSAGE(STATUS "CMAKE_INSTALL_PREFIX is: " ${CMAKE_INSTALL_PREFIX})
55

66
project (UnityFbxExporterEditorPackage NONE)
77

8-
###########################################################################
9-
10-
# Get git tag as package version
11-
find_package(Git REQUIRED)
12-
execute_process(COMMAND ${GIT_EXECUTABLE} describe --tags HEAD
13-
OUTPUT_VARIABLE PACKAGE_VERSION
14-
OUTPUT_STRIP_TRAILING_WHITESPACE)
15-
# only keep x.y.z[-preview.n]
16-
string(REGEX REPLACE "^.*([0-9]\.[0-9]\.[0-9].*)$" "\\1" PACKAGE_VERSION "${PACKAGE_VERSION}")
17-
18-
# Get git revision hash as package revision
19-
execute_process(COMMAND ${GIT_EXECUTABLE} rev-parse HEAD
20-
OUTPUT_VARIABLE PACKAGE_REVISION
21-
OUTPUT_STRIP_TRAILING_WHITESPACE)
22-
23-
# Get git repo url
24-
execute_process(COMMAND ${GIT_EXECUTABLE} config --get remote.origin.url
25-
OUTPUT_VARIABLE PACKAGE_REPO_URL
26-
OUTPUT_STRIP_TRAILING_WHITESPACE)
27-
28-
configure_file(${CMAKE_SOURCE_DIR}/package.json.in ${CMAKE_BINARY_DIR}/package.json @ONLY)
29-
308
###########################################################################
319
# Zip integrations folder
3210

@@ -83,7 +61,7 @@ install(
8361
DESTINATION "${CMAKE_INSTALL_PREFIX}/com.unity.formats.fbx/Editor/Integrations~"
8462
)
8563
install(
86-
FILES "${CMAKE_SOURCE_DIR}/CHANGELOG.md" "${CMAKE_SOURCE_DIR}/LICENSE.md" "${CMAKE_BINARY_DIR}/package.json"
64+
FILES "${CMAKE_SOURCE_DIR}/CHANGELOG.md" "${CMAKE_SOURCE_DIR}/LICENSE.md"
8765
DESTINATION "${CMAKE_INSTALL_PREFIX}/com.unity.formats.fbx"
8866
)
8967

TestProjects/FbxTests/Packages/manifest.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"com.unity.analytics": "3.2.2",
55
"com.unity.collab-proxy": "1.2.15",
66
"com.unity.formats.fbx": "file:../../../com.unity.formats.fbx",
7-
"com.unity.formats.fbx.tests": "file:../../../com.unity.formats.fbx.tests",
87
"com.unity.package-manager-ui": "2.1.1",
98
"com.unity.package-validation-suite": "0.4.0-preview.13",
109
"com.unity.purchasing": "2.0.1",

com.unity.formats.fbx.tests/package.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

com.unity.formats.fbx.tests/package.json.meta

Lines changed: 0 additions & 7 deletions
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"createSeparatePackage": true}

0 commit comments

Comments
 (0)