From 90190d0041060487e2961901db57d02fcbcfb51f Mon Sep 17 00:00:00 2001 From: Ilia Eriomenco <ilia.eriomenco@endava.com> Date: Mon, 29 Mar 2021 10:58:18 +0300 Subject: [PATCH] ci: moved yarn test from test to template section --- .gitlab-ci.elife.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.elife.yml b/.gitlab-ci.elife.yml index 6dcd6e9e17..3b729ecbbd 100644 --- a/.gitlab-ci.elife.yml +++ b/.gitlab-ci.elife.yml @@ -91,13 +91,15 @@ lint: - psql -h postgres -U kotahidev -d kotahidev -c "create extension pgcrypto;" # use the example env for tests - cp .env.example .env + # specify host here else it confuses the linked postgres image + - POSTGRES_HOST=postgres yarn test:all:chrome:$TEST_ITEM test-chrome: <<: *run_test_template + variables: + TEST_ITEM: elife script: - *run_script_template - # specify host here else it confuses the linked postgres image - - POSTGRES_HOST=postgres yarn test:all:chrome:elife # .test_template: &run_test_template # image: $IMAGE_ORG/$IMAGE_NAME-dev:$CI_COMMIT_SHA -- GitLab