From 5a3af0039824e92a499d96390fbd60cce242634e Mon Sep 17 00:00:00 2001 From: George Kalpakas Date: Thu, 25 Oct 2018 14:01:24 +0300 Subject: [PATCH] ci(docs-infra): split `test_and_deploy_aio` to two separate jobs (#26746) By splitting the jobs, if something goes wrong with deploying (e.g. a network issue), we can re-run just that part instead of having to wait for all the tests to complete again. In terms of total duration, the difference should be minimal, because the two operations (testing and deploying) do not depend on shared tasks. For example, we need to build again (for the specific target environment; e.g. stable, next, etc.) before deploying anyway. PR Close #26746 --- .circleci/config.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 3613592615..8daf6da534 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -158,7 +158,7 @@ jobs: - *setup_bazel_remote_execution - run: bazel test //... --define=compile=aot --build_tag_filters=ivy-aot --test_tag_filters=ivy-aot - test_and_deploy_aio: + test_aio: <<: *job_defaults steps: - *define_env_vars @@ -184,6 +184,15 @@ jobs: - run: xvfb-run --auto-servernum yarn --cwd aio e2e # Run unit tests for Firebase redirects - run: yarn --cwd aio redirects-test + + deploy_aio: + <<: *job_defaults + steps: + - *define_env_vars + - checkout: + <<: *post_checkout + - restore_cache: + key: *cache_key # Deploy angular.io to production (if necessary) - run: echo "export CI_STABLE_BRANCH=$(npm info @angular/core dist-tags.latest | sed -r 's/^\s*([0-9]+\.[0-9]+)\.[0-9]+.*$/\1.x/')" | tee -a $BASH_ENV - run: xvfb-run --auto-servernum yarn --cwd aio deploy-production @@ -392,7 +401,10 @@ workflows: - test_ivy_jit - test_ivy_aot - build-packages-dist - - test_and_deploy_aio + - test_aio + - deploy_aio: + requires: + - test_aio - test_aio_local: requires: - build-packages-dist