From 501181b2ffe46743f0834b023d59970a00696683 Mon Sep 17 00:00:00 2001
From: Gregory Ashton <gregory.ashton@ligo.org>
Date: Sun, 10 Jun 2018 19:10:07 +1000
Subject: [PATCH] Adds lalsuite as a dependency

- Moves setup to a before_script
- Remove lalsuite from requirements for CI to prevent it from failing
---
 .gitlab-ci.yml   | 6 +++++-
 requirements.txt | 1 +
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2219b72ce..350aa81a0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -17,10 +17,14 @@ stages:
 exitcode-jessie:
   stage: test
   image: ligo/software:jessie
-  script:
+  before_script:
+    # Remove lalsuite from requirements for CI tests - the pip version in the
+    # CI is too old and fails when trying to install lalsuite
+    - sed -i '/lalsuite/d' requirements.txt
     - pip install -r requirements.txt
     - pip install coverage
     - pip install coverage-badge
+  script:
     - python setup.py install
     - coverage erase
     - coverage run --source=tupak/ -a test/detector_tests.py
diff --git a/requirements.txt b/requirements.txt
index fe8a629b9..356634c1c 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -14,3 +14,4 @@ nestle
 deepdish
 ptemcee
 mock
+lalsuite
-- 
GitLab