build: move aot and prerender jobs to circleci (#13690)

This commit is contained in:
Paul Gschwendtner
2018-10-19 22:42:55 +02:00
committed by Joey Perrott
parent 59b47e1a83
commit fb8496dc45
3 changed files with 33 additions and 4 deletions
+33
View File
@@ -125,6 +125,37 @@ jobs:
- *save_cache
# --------------------------------------
# Job that builds the demo-app with AOT
# --------------------------------------
demo_app_aot:
<<: *job_defaults
resource_class: xlarge
steps:
- *checkout_code
- *restore_cache
- *yarn_install
- run: yarn gulp ci:aot
- *save_cache
# -------------------------------------------------------------------------
# Job that pre-render's the universal app with `@angular/platform-server`.
# This verifies that Angular Material can be rendered within Node.
# -------------------------------------------------------------------------
prerender_build:
<<: *job_defaults
resource_class: xlarge
steps:
- *checkout_code
- *restore_cache
- *yarn_install
- run: yarn gulp ci:prerender
- *save_cache
# ----------------------------------
# Lint job. Runs the gulp lint task.
# ----------------------------------
@@ -162,6 +193,8 @@ workflows:
integration_tests:
jobs:
- e2e_tests
- prerender_build
- demo_app_aot
# Lint workflow. As we want to lint in one job, this is a workflow with just one job.
lint:
-2
View File
@@ -25,9 +25,7 @@ branches:
jobs:
include:
- env: "MODE=aot"
- env: "MODE=payload"
- env: "MODE=prerender"
- env: "MODE=saucelabs_required"
- env: "MODE=browserstack_required"
- env: "DEPLOY_MODE=build-artifacts"
-2
View File
@@ -19,8 +19,6 @@ task('aot:deps', sequenceTask(
'cdk-experimental:build-release',
'material-experimental:build-release',
'material-moment-adapter:build-release',
// The examples module needs to be built before building examples package
'build-examples-module',
'material-examples:build-release',
],
// Build the assets after the releases have been built, because the demo-app assets import