diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c49077bb27a2af158624e7222d999973487f0951..f22953527910ca53be40e8afa7711c6ae441c04c 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -101,6 +101,17 @@ minimal-sympy-master:
   tags:
     - docker
 
+minimal-sympy-perhistoric:
+  stage: test
+  except:
+    variables:
+      - $ENABLE_NIGHTLY_BUILDS
+  image: i10git.cs.fau.de:5005/pycodegen/pycodegen/minimal_ubuntu
+  script:
+    - apt install python3-sympy -y
+    - python3 setup.py quicktest
+  tags:
+    - docker
 
 pycodegen-integration:
   image: i10git.cs.fau.de:5005/pycodegen/pycodegen/full