From fb8496dc4563a3171b53cb2f1018010cbd5cc6fd Mon Sep 17 00:00:00 2001 From: Paul Gschwendtner Date: Fri, 19 Oct 2018 22:42:55 +0200 Subject: [PATCH] build: move aot and prerender jobs to circleci (#13690) --- .circleci/config.yml | 33 +++++++++++++++++++++++++++++++++ .travis.yml | 2 -- tools/gulp/tasks/aot.ts | 2 -- 3 files changed, 33 insertions(+), 4 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bdcbe619f57..28e7bc558ce 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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: diff --git a/.travis.yml b/.travis.yml index d4a85bc3925..422ac36bbb9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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" diff --git a/tools/gulp/tasks/aot.ts b/tools/gulp/tasks/aot.ts index 99357a01436..cd01fe0fb09 100644 --- a/tools/gulp/tasks/aot.ts +++ b/tools/gulp/tasks/aot.ts @@ -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