mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
CircleCI: Fix master pipeline wrt front-end tests (#27681)
* CircleCI: Fix master pipeline wrt front-end tests Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com> * Appease shellcheck Signed-off-by: Arve Knudsen <arve.knudsen@gmail.com>
This commit is contained in:
parent
6a14f830ba
commit
1ec8eb3fc3
@ -860,16 +860,13 @@ jobs:
|
|||||||
command: |
|
command: |
|
||||||
if [[ -n $CIRCLE_TAG ]]; then
|
if [[ -n $CIRCLE_TAG ]]; then
|
||||||
# A release build
|
# A release build
|
||||||
/tmp/grabpl test-frontend --github-token "${GITHUB_GRAFANABOT_TOKEN}" --edition << parameters.edition >> \
|
./scripts/circle-test-frontend.sh --edition << parameters.edition >> $CIRCLE_TAG
|
||||||
$CIRCLE_TAG
|
|
||||||
elif [[ $CIRCLE_BRANCH == "chore/test-release-pipeline" ]]; then
|
elif [[ $CIRCLE_BRANCH == "chore/test-release-pipeline" ]]; then
|
||||||
# We're testing the release pipeline
|
# We're testing the release pipeline
|
||||||
/tmp/grabpl test-frontend --github-token "${GITHUB_GRAFANABOT_TOKEN}" --edition << parameters.edition >> \
|
./scripts/circle-test-frontend.sh --edition << parameters.edition >> v7.0.0-test
|
||||||
v7.0.0-test
|
|
||||||
else
|
else
|
||||||
# A master build
|
# A master build
|
||||||
/tmp/grabpl test-frontend --github-token "${GITHUB_GRAFANABOT_TOKEN}" --edition << parameters.edition >> \
|
./scripts/circle-test-frontend.sh --edition << parameters.edition >> --build-id $CIRCLE_WORKFLOW_ID
|
||||||
--build-id $CIRCLE_WORKFLOW_ID
|
|
||||||
fi
|
fi
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: reports/junit
|
path: reports/junit
|
||||||
|
@ -7,10 +7,7 @@ start=$(date +%s)
|
|||||||
|
|
||||||
export TEST_MAX_WORKERS=2
|
export TEST_MAX_WORKERS=2
|
||||||
|
|
||||||
exit_if_fail yarn run prettier:check
|
/tmp/grabpl test-frontend --github-token "${GITHUB_GRAFANABOT_TOKEN}" "$@"
|
||||||
exit_if_fail yarn run packages:typecheck
|
|
||||||
exit_if_fail yarn run typecheck
|
|
||||||
exit_if_fail yarn run test
|
|
||||||
|
|
||||||
end=$(date +%s)
|
end=$(date +%s)
|
||||||
seconds=$((end - start))
|
seconds=$((end - start))
|
||||||
|
Loading…
Reference in New Issue
Block a user