From 8921be142f610ffee24b52843cb3040539108fde Mon Sep 17 00:00:00 2001
From: "Oriol.Tinto" <oriol.tinto@physik.uni-muenchen.de>
Date: Thu, 11 May 2023 13:59:49 +0000
Subject: [PATCH] Development

---
 .gitlab-ci.yml | 29 +++++++++++++++++++++++------
 1 file changed, 23 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index abf0dd9..6cd8079 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -4,6 +4,7 @@ stages:
     - deploy_test
     - test_install
     - deploy_prod
+    - prod_install
 
 test_docker:
     stage: test
@@ -48,12 +49,9 @@ install-from-testpypi:
     - apt-get install -y libeccodes-dev
     - apt install -yq git vim python3 python3-pip python3-venv
   script:
-    - pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ enstools-compression
+    - pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ enstools-compression --break-system-packages
     - python -c "from enstools.compression import api"
-  artifacts:
-    when: on_failure
-    paths:
-      - "*.log"
+
 
 deploy-to-pypi:
   stage: deploy_prod
@@ -66,4 +64,23 @@ deploy-to-pypi:
   script:
     - pip install twine
     - python setup.py sdist bdist_wheel
-    - twine upload -u "__token__" -p "$PYPI_PASSWORD" --skip-existing dist/*
\ No newline at end of file
+    - twine upload -u "__token__" -p "$PYPI_PASSWORD" --skip-existing dist/*
+
+install-from-pypi:
+  stage: prod_install
+  image: ubuntu:rolling
+  tags:
+    - docker.meteo.physik.lmu.de
+  only:
+    - tags
+  needs: ["deploy-to-pypi"]
+  before_script:
+    - apt update
+    - export DEBIAN_FRONTEND=noninteractive
+    - apt-get install -y libproj-dev proj-data proj-bin
+    - apt-get install -y libgeos-dev
+    - apt-get install -y libeccodes-dev
+    - apt install -yq git vim python3 python3-pip python3-venv
+  script:
+    - pip install enstools-compression --break-system-packages
+    - python -c "from enstools.compression import api"
-- 
GitLab