Skip to content

Commit

Permalink
Raise error when mismatching VEP version and branch name
Browse files Browse the repository at this point in the history
  • Loading branch information
nuno-agostinho committed Aug 28, 2024
1 parent 9014c51 commit 88d8776
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,16 @@ WORKDIR $OPT_SRC
# Add ensembl-vep files from current context
ADD . ensembl-vep

# For release branches, raise an error if VEP version does not match the branch name
RUN if expr "$BRANCH" : "^release/.*" > /dev/null ; \
then \
branch_version=$(echo $BRANCH | sed -E 's|release/([0-9]+).*|\1|g'); \
vep_version=$(grep VEP_VERSION */modules/Bio/EnsEMBL/VEP/Constants.pm | grep -Eo '[0-9]+'); \
if [ $branch_version -ne $vep_version ]; then \
echo "ERROR: VEP version $vep_version does not match version in branch name '$BRANCH'"; exit 1; \
fi; \
fi

# Clone/download repositories/libraries
RUN if [ "$BRANCH" = "main" ]; \
then export BRANCH_OPT=""; \
Expand Down

0 comments on commit 88d8776

Please sign in to comment.