From c08e08b93cc83f4dcb63955c323e797060f8393f Mon Sep 17 00:00:00 2001
From: Bastien Abadie <bastien@nextcairn.com>
Date: Tue, 12 Dec 2023 13:17:03 +0100
Subject: [PATCH] Build arkindex source code with nuitka, but do not expose as
 docker image

---
 .gitlab-ci.yml | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 447ebc9b06..2f7f5a424c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -158,7 +158,7 @@ backend-build:
   script:
     - ci/build.sh Dockerfile
 
-backend-build-binary:
+backend-build-binary-docker:
   stage: build
   image: docker:19.03.1
   services:
@@ -180,6 +180,21 @@ backend-build-binary:
   script:
     - ci/build.sh Dockerfile.binary "-binary"
 
+# Make sure arkindex is always compatible with Nuitka
+backend-build-binary:
+  stage: build
+
+  image: python:3.10
+
+  before_script:
+    - pip install nuitka
+
+  script:
+    - python -m nuitka --nofollow-imports --include-package=arkindex --nofollow-import-to=*.tests arkindex/manage.py
+
+  except:
+    - schedules
+
 backend-static-deploy:
   stage: deploy
   image: python:3-slim
-- 
GitLab