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:
Alex Rickabaugh
2018-06-05 11:38:46 -07:00
committed by Miško Hevery
parent 8be6892777
commit 7983f0a69b
22 changed files with 192 additions and 34 deletions

View File

@ -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",

View File

@ -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 = [

View 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.
});
});