Skip to content

Commit 2cb53fa

Browse files
authored
Merge pull request #53 from tom-tan/add-unittest-example-target
Add .travis.yml to test the examples
2 parents bc9b02d + 2984e19 commit 2cb53fa

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

.travis.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
language: python
2+
python:
3+
- 2.7
4+
- 3.6
5+
6+
before_script:
7+
- git clone https://github.com/common-workflow-language/cwltool.git cwltool && pip install ./cwltool
8+
- git clone https://github.com/common-workflow-language/cwltest.git cwltest && pip install ./cwltest
9+
10+
script:
11+
- make RUNNER=cwltool unittest-examples

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,12 @@ lesson-figures :
103103
unittest :
104104
python bin/test_lesson_check.py
105105

106+
RUNNER=cwl-runner
107+
108+
## unittest-examples: run unit tests for the examples
109+
unittest-examples :
110+
cd _includes/cwl; cwltest --test=conformance-test.yml --tool=${RUNNER}
111+
106112
## lesson-files : show expected names of generated files for debugging.
107113
lesson-files :
108114
@echo 'RMD_SRC:' ${RMD_SRC}

0 commit comments

Comments
 (0)