From dff91c9747db90cb5084f90dcac2d00eb90a6b5a Mon Sep 17 00:00:00 2001
From: Markus Scheidgen <markus.scheidgen@gmail.com>
Date: Mon, 11 May 2020 14:43:37 +0200
Subject: [PATCH] Added a test for sdist pip install. #344

---
 .gitlab-ci.yml | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e4669f8130..1731db1afd 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -94,6 +94,24 @@ tests:
       - $CI_COMMIT_REF_NAME =~ /^dev-.*$/
       - $CI_COMMIT_MESSAGE =~ /\[skip[ _-]tests?\]/i
 
+install_tests:
+  stage: test
+  image: python:3.6
+  before_script:
+    - git submodule sync
+    - git submodule update --init --jobs=4
+  script:
+    - pip install --upgrade pip
+    - pip install fastentrypoints
+    - pip install pyyaml
+    - pip install numpy
+    - python setup.py compile
+    - python setup.py sdist
+    - pip install dist/nomad-0.8.0.tar.gz
+    - python -c "import nomad.datamodel, nomad.datamodel.metainfo, nomad.client"
+    - pip install dist/nomad-0.8.0.tar.gz[parsing]
+    - python -m nomad.cli parse tests/data/parsers/vasp/vasp.xml
+
 deploy:
   stage: deploy
   before_script:
-- 
GitLab