From 23434d25a317d13dbaeec1cace82c86d2ec87c84 Mon Sep 17 00:00:00 2001
From: mancini <mancini@astron.nl>
Date: Wed, 2 Oct 2019 16:17:03 +0200
Subject: [PATCH] Add validation step and cwl-runner

---
 .gitlab-ci.yml | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 26c66e0c..da28e5b6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -14,17 +14,22 @@ before_script:
   - pip install virtualenv
   - virtualenv venv
   - source venv/bin/activate
-  - pip install cwltool
+  - pip install cwltool cwl-runner
   - cd test_data
   - tar -xvf ${TEST_DATASET_NAME}
   - cd $CI_PROJECT_DIR
 
 after_script:
   - echo "All done"
-  
+
+validate_cwl_scripts:
+  stage: validate_cwl_scripts
+  script:
+    - for file in `find . -name '*.cwl'`; do cwltool --validate $file; done
+  allow_failure: true
 
 test_DPPP_step:
   stage: test
   script:
     - pwd
-    - cwltool steps/DPPP.cwl msin=test_data/L570745_SB000_uv_first10.MS
+    - cwl-runner steps/DPPP.cwl msin=test_data/L570745_SB000_uv_first10.MS
-- 
GitLab