From 7dccf4bcfe3faaf895f51dd78fcb5db913542831 Mon Sep 17 00:00:00 2001 From: GeorgianaElena Date: Mon, 17 Feb 2020 10:58:53 +0200 Subject: [PATCH] Reuse executor --- .circleci/config.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index d2f48ce..1eba2a5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,4 +1,12 @@ version: 2.1 +executors: + ubuntu_docker: + docker: + # Match target OS of TLJH + - image: ubuntu:18.04 + working_directory: ~/repo + + commands: setup_venv: description: Setup hub venv @@ -19,12 +27,7 @@ commands: jobs: unit-test: - docker: - # Match target OS of TLJH - - image: ubuntu:18.04 - - working_directory: ~/repo - + executor: ubuntu_docker steps: - checkout @@ -103,12 +106,7 @@ jobs: documentation: - docker: - # Match target OS of TLJH - - image: ubuntu:18.04 - - working_directory: ~/repo - + executor: ubuntu_docker steps: - checkout