ci(ivy): configure CI environments for Ivy JIT and AOT (#24309)
Two new CircleCI environments are created: test_ivy_jit and test_ivy_aot. Both run a subset of the tests that have been marked with Bazel tags as being appropriate for that environment. Once all the tests pass, builds are published to the *-builds repo both for the legacy View Engine compiled code as well as for ivy-jit and ivy-aot. PR Close #24309
This commit is contained in:

committed by
Miško Hevery

parent
8be6892777
commit
7983f0a69b
@ -24,7 +24,10 @@ ng_package(
|
||||
"//packages/animations/browser/testing:package.json",
|
||||
],
|
||||
entry_point = "packages/animations/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":animations",
|
||||
"//packages/animations/browser",
|
||||
|
@ -27,7 +27,10 @@ ng_package(
|
||||
],
|
||||
entry_point = "packages/common/index.js",
|
||||
packages = ["//packages/common/locales:package"],
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
"//packages/common",
|
||||
"//packages/common/http",
|
||||
|
@ -34,6 +34,9 @@ npm_package(
|
||||
srcs = [
|
||||
"package.json",
|
||||
],
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [":compiler-cli"],
|
||||
)
|
||||
|
@ -21,7 +21,10 @@ ng_package(
|
||||
],
|
||||
entry_point = "packages/compiler/compiler.js",
|
||||
include_devmode_srcs = True,
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":compiler",
|
||||
"//packages/compiler/testing",
|
||||
|
@ -29,7 +29,11 @@ ng_package(
|
||||
"//packages/core/testing:package.json",
|
||||
],
|
||||
entry_point = "packages/core/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"ivy-local",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":core",
|
||||
"//packages/core/testing",
|
||||
|
@ -11,6 +11,7 @@ ts_library(
|
||||
exclude = [
|
||||
"**/*_node_only_spec.ts",
|
||||
"render3/**/*.ts",
|
||||
"ivy_local_empty_spec.ts",
|
||||
],
|
||||
),
|
||||
deps = [
|
||||
@ -33,6 +34,15 @@ ts_library(
|
||||
],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "ivy_local_empty_lib",
|
||||
testonly = 1,
|
||||
srcs = ["ivy_local_empty_spec.ts"],
|
||||
deps = [
|
||||
"//packages:types",
|
||||
],
|
||||
)
|
||||
|
||||
ts_library(
|
||||
name = "test_node_only_lib",
|
||||
testonly = 1,
|
||||
@ -60,6 +70,19 @@ jasmine_node_test(
|
||||
],
|
||||
)
|
||||
|
||||
jasmine_node_test(
|
||||
name = "ivy_local_empty_test",
|
||||
bootstrap = ["angular/tools/testing/init_node_no_angular_spec.js"],
|
||||
tags = [
|
||||
"ivy-local",
|
||||
"ivy-only",
|
||||
],
|
||||
deps = [
|
||||
":ivy_local_empty_lib",
|
||||
"//tools/testing:node_no_angular",
|
||||
],
|
||||
)
|
||||
|
||||
ts_web_test_suite(
|
||||
name = "test_web",
|
||||
deps = [
|
||||
|
19
packages/core/test/ivy_local_empty_spec.ts
Normal file
19
packages/core/test/ivy_local_empty_spec.ts
Normal file
@ -0,0 +1,19 @@
|
||||
/**
|
||||
* @license
|
||||
* Copyright Google Inc. All Rights Reserved.
|
||||
*
|
||||
* Use of this source code is governed by an MIT-style license that can be
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
/*
|
||||
* This file exists to have at least one test target that can pass with --define=compile=local.
|
||||
*
|
||||
* TODO(alxhub): Clean up once actual Angular tests start passing with Ivy/AOT.
|
||||
*/
|
||||
|
||||
describe('empty test', () => {
|
||||
it('should pass without doing anything', () => {
|
||||
// If this fails, you probably need a new computer.
|
||||
});
|
||||
});
|
@ -28,7 +28,10 @@ ng_package(
|
||||
packages = [
|
||||
"//packages/elements/schematics:npm_package",
|
||||
],
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":elements",
|
||||
],
|
||||
|
@ -22,7 +22,10 @@ ng_package(
|
||||
name = "npm_package",
|
||||
srcs = ["package.json"],
|
||||
entry_point = "packages/forms/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":forms",
|
||||
],
|
||||
|
@ -25,7 +25,10 @@ ng_package(
|
||||
"//packages/http/testing:package.json",
|
||||
],
|
||||
entry_point = "packages/http/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":http",
|
||||
"//packages/http/testing",
|
||||
|
@ -23,6 +23,7 @@ npm_package(
|
||||
name = "npm_package",
|
||||
srcs = ["package.json"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
|
@ -27,7 +27,10 @@ ng_package(
|
||||
"//packages/platform-browser-dynamic/testing:package.json",
|
||||
],
|
||||
entry_point = "packages/platform-browser-dynamic/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":platform-browser-dynamic",
|
||||
"//packages/platform-browser-dynamic/testing",
|
||||
|
@ -26,7 +26,10 @@ ng_package(
|
||||
"//packages/platform-browser/testing:package.json",
|
||||
],
|
||||
entry_point = "packages/platform-browser/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":platform-browser",
|
||||
"//packages/platform-browser/animations",
|
||||
|
@ -32,7 +32,10 @@ ng_package(
|
||||
"//packages/platform-server/testing:package.json",
|
||||
],
|
||||
entry_point = "packages/platform-server/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":platform-server",
|
||||
"//packages/platform-server/testing",
|
||||
|
@ -24,6 +24,9 @@ ng_package(
|
||||
name = "npm_package",
|
||||
srcs = ["package.json"],
|
||||
entry_point = "packages/platform-webworker-dynamic/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [":platform-webworker-dynamic"],
|
||||
)
|
||||
|
@ -24,7 +24,10 @@ ng_package(
|
||||
name = "npm_package",
|
||||
srcs = ["package.json"],
|
||||
entry_point = "packages/platform-webworker/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":platform-webworker",
|
||||
],
|
||||
|
@ -28,7 +28,10 @@ ng_package(
|
||||
"//packages/router/upgrade:package.json",
|
||||
],
|
||||
entry_point = "packages/router/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":router",
|
||||
"//packages/router/testing",
|
||||
|
@ -47,6 +47,7 @@ ng_package(
|
||||
],
|
||||
entry_point = "packages/service-worker/index.js",
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
|
@ -25,7 +25,10 @@ ng_package(
|
||||
"//packages/upgrade/static:package.json",
|
||||
],
|
||||
entry_point = "packages/upgrade/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
tags = [
|
||||
"ivy-jit",
|
||||
"release-with-framework",
|
||||
],
|
||||
deps = [
|
||||
":upgrade",
|
||||
"//packages/upgrade/static",
|
||||
|
Reference in New Issue
Block a user