From 92b82605b96f7010f74933971608e0afade0561a Mon Sep 17 00:00:00 2001 From: Greg Magolan Date: Mon, 10 Feb 2020 21:41:28 -0800 Subject: [PATCH] ci: install java runtime in test job (#33927) Install java runtime which is required by some integration tests such as `//integration:hello_world__closure_test`, `//integration:i18n_test` and `//integration:ng_elements_test` to run the closure compiler. PR Close #33927 --- .circleci/config.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e8a7f104bd..24cda9c5d8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -136,6 +136,19 @@ commands: # circleci/node:x.x.x-browsers image. sudo apt-get -y install libgtk-3-0 libasound2 libnss3 libxss1 + # Install java runtime which is required by some integration tests such as + # //integration:hello_world__closure_test, //integration:i18n_test and + # //integration:ng_elements_test to run the closure compiler + install_java: + description: Install java + steps: + - run: + name: Install java + command: | + sudo apt-get update + # Install java runtime + sudo apt-get install default-jre + # Initializes the CI environment by setting up common environment variables. init_environment: description: Initializing environment (setting up variables) @@ -286,6 +299,7 @@ jobs: - custom_attach_workspace - init_environment - install_chrome_libs + - install_java - run: command: yarn bazel test //... --build_tag_filters=-ivy-only --test_tag_filters=-ivy-only no_output_timeout: 20m