From 2cc53ae612a0fa45feda944d5e42bcb971a0492f Mon Sep 17 00:00:00 2001 From: Anton Joubert <ajoubert@ska.ac.za> Date: Sat, 21 Dec 2019 17:10:37 +0200 Subject: [PATCH] Include git installation for katversion in publish The docker image used doesn't contain git, so install it for katversion to use when checking the package metadata (version). --- .gitlab-ci.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f29b5e5..e037f8f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -88,6 +88,10 @@ publish to nexus: TWINE_USERNAME: $TWINE_USERNAME TWINE_PASSWORD: $TWINE_PASSWORD script: + # Note: katversion will include the git hash in the version for non-tagged commits, but need git + # TODO: consider moving git installation to ska-python-buildenv Dockerfile + - apt-get -y update + - apt-get install -y git --no-install-recommends # Check metadata requirements - scripts/validate-metadata.sh - pip install twine -- GitLab