diff --git a/.buildkite/scripts/pipeline_test.sh b/.buildkite/scripts/pipeline_test.sh index ed41426fb77..a037d30e313 100644 --- a/.buildkite/scripts/pipeline_test.sh +++ b/.buildkite/scripts/pipeline_test.sh @@ -15,19 +15,19 @@ DOCKER_OPTIONS=( if [[ "${TEST_TYPE}" == 'lint' ]]; then echo "[TASK]: Running linters" - DOCKER_OPTIONS+=(bash -c \"/opt/yarn\*/bin/yarn \&\& yarn cypress install \&\& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn lint\") + DOCKER_OPTIONS+=(bash -c "/opt/yarn*/bin/yarn && yarn cypress install && NODE_OPTIONS=\"--max-old-space-size=2048\" yarn lint") elif [[ "${TEST_TYPE}" == 'unit' ]]; then echo "[TASK]: Running unit tests" - DOCKER_OPTIONS+=(bash -c \"/opt/yarn\*/bin/yarn \&\& yarn cypress install \&\& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-unit\") + DOCKER_OPTIONS+=(bash -c "/opt/yarn\*/bin/yarn \&\& yarn cypress install \&\& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-unit") elif [[ "${TEST_TYPE}" == 'cypress:16' ]]; then echo "[TASK]: Running Cypress tests against React 16" - DOCKER_OPTIONS+=(bash -c \"/opt/yarn\*/bin/yarn \&\& yarn cypress install \&\& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-cypress --react-version 16\") + DOCKER_OPTIONS+=(bash -c "/opt/yarn\*/bin/yarn \&\& yarn cypress install \&\& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-cypress --react-version 16") elif [[ "${TEST_TYPE}" == 'cypress:17' ]]; then echo "[TASK]: Running Cypress tests against React 17" - DOCKER_OPTIONS+=(bash -c \"/opt/yarn\*/bin/yarn \&\& yarn cypress install \&\& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-cypress --react-version 17\") + DOCKER_OPTIONS+=(bash -c "/opt/yarn\*/bin/yarn \&\& yarn cypress install \&\& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-cypress --react-version 17") elif [[ "${TEST_TYPE}" == 'cypress:18' ]]; then echo "[TASK]: Running Cypress tests against React 18" - DOCKER_OPTIONS+=(bash -c \"/opt/yarn\*/bin/yarn \&\& yarn cypress install \&\& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-cypress --react-version 18\") + DOCKER_OPTIONS+=(bash -c "/opt/yarn\*/bin/yarn \&\& yarn cypress install \&\& NODE_OPTIONS=\"--max-old-space-size=2048\" yarn test-cypress --react-version 18") fi docker run "${DOCKER_OPTIONS[@]}"