Skip to content

Commit

Permalink
Removed double quote literals for bash -c command.
Browse files Browse the repository at this point in the history
  • Loading branch information
1Copenut committed Sep 19, 2023
1 parent 7967c91 commit 3c4493c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .buildkite/scripts/pipeline_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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[@]}"

0 comments on commit 3c4493c

Please sign in to comment.