From 1f537f761af270affdc3afe3ad68269abfc81e19 Mon Sep 17 00:00:00 2001
From: Duncan Macleod <duncan.macleod@ligo.org>
Date: Mon, 11 Feb 2019 09:33:11 +0000
Subject: [PATCH] ci: added some basic setup tests

to make sure the core dependencies are specified properly
---
 .gitlab-ci.yml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 183523390..b583fe99f 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,6 +13,31 @@ stages:
   - test
   - deploy
 
+.test-python: &test-python
+  stage: test
+  image: python
+  before_script:
+    # this is required because pytables doesn't use a wheel on py37
+    - apt-get -yqq update
+    - apt-get -yqq install libhdf5-dev
+  script:
+    - python -m pip install .
+    - python -c "import bilby"
+    - python -c "import bilby.core"
+    - python -c "import bilby.gw"
+    - python -c "import bilby.hyper"
+    - python -c "import cli_bilby"
+
+# test basic setup on python2
+basic-2.7:
+  <<: *test-python
+  image: python:2.7
+
+# test basic setup on python3
+basic-3.7:
+  <<: *test-python
+  image: python:3.7
+
 # test example on python 2
 python-2.7:
   stage: test
-- 
GitLab