Skip to content
Snippets Groups Projects
Commit f9ef7d45 authored by Björn Brala's avatar Björn Brala
Browse files

When preparing the installation fails, fail the job. Composer sometimes has...

When preparing the installation fails, fail the job. Composer sometimes has issues, this should fix those.
parent 5ddd4094
No related branches found
No related tags found
1 merge request!29When setup fails, don't continue;
Pipeline #184952 passed
......@@ -25,7 +25,6 @@ variables:
split -n l/${CI_NODE_INDEX}/${CI_NODE_TOTAL} artifacts/projects.tsv > ${WORKSPACE_DIR}/projects.tsv && \
echo "This run will analyze $(cat ${WORKSPACE_DIR}/projects.tsv | wc -l) projects." && \
echo "Starting at \"$(awk 'NR==1 {print $1; exit}' ${WORKSPACE_DIR}/projects.tsv)\" and end with \"$(awk 'END{print $1; exit}' ${WORKSPACE_DIR}/projects.tsv)\"" && \
./prepare_drupal_installation.sh && \
./project_readiness.sh || true && \
mv ${WORKSPACE_DIR}/phpstan-results/* artifacts/phpstan-results/ && \
mv ${WORKSPACE_DIR}/projects.tsv artifacts/projects_${CI_NODE_INDEX}.tsv && \
......@@ -144,6 +143,8 @@ run-bot-against-testset:
before_script:
- mkdir -p artifacts/phpstan-results
script:
- echo ">>>>>>>>>>>>>>>>>>>>>>>>>>> prepare things"
- ./prepare_drupal_installation.sh
- echo ">>>>>>>>>>>>>>>>>>>>>>>>>>> start things"
- *analyze-projects-script
- echo ">>>>>>>>>>>>>>>>>>>>>>>>>>> test things"
......@@ -175,6 +176,8 @@ analyze-job:
KUBERNETES_MEMORY_REQUEST: "6Gi"
script:
- mkdir -p artifacts/phpstan-results
- echo ">>>>>>>>>>>>>>>>>>>>>>>>>>> prepare things"
- ./prepare_drupal_installation.sh
- *analyze-projects-script
rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
......
set -e
export WORKSPACE_DIR="${WORKSPACE_DIR:-/build/drupalci/workspace}"
export CHECKOUT_DIR="${CHECKOUT_DIR:-/build/drupalci/drupal-checkout}"
export DRUPAL_CORE_VERSION="${DRUPAL_CORE_VERSION:-9.5.x}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment