From 08ed8c1698dcb6951203cfe48e41b45868c52565 Mon Sep 17 00:00:00 2001
From: Anton Joubert <ajoubert@ska.ac.za>
Date: Sat, 21 Dec 2019 17:09:03 +0200
Subject: [PATCH] Revert "Move metadata validation to CI build step"

This reverts commit ae02b138c74f1ca41323f0a6bbbfa683893ace74.
---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b11934c..f29b5e5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -33,7 +33,6 @@ build wheel:
     # TODO:  consider moving git installation to ska-python-buildenv Dockerfile
     - apt-get -y update
     - apt-get install -y git --no-install-recommends
-    - scripts/validate-metadata.sh
     - python setup.py sdist bdist_wheel
   artifacts:
     paths:
@@ -89,6 +88,8 @@ publish to nexus:
     TWINE_USERNAME: $TWINE_USERNAME
     TWINE_PASSWORD: $TWINE_PASSWORD
   script:
+    # Check metadata requirements
+    - scripts/validate-metadata.sh
     - pip install twine
     - twine upload --repository-url $PYPI_REPOSITORY_URL dist/*
   only:
-- 
GitLab