-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from hubmapconsortium/mccalluc/trivial-example
Mccalluc/trivial example
- Loading branch information
Showing
9 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
airflow.cfg | ||
**/test-output-actual | ||
|
||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
language: python | ||
python: | ||
- '3.7' | ||
cache: pip | ||
script: | ||
- ./test.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cwlref-runner==1.0 | ||
cwltool==1.0.20191206125148 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
set -o errexit | ||
|
||
start() { echo travis_fold':'start:$1; echo $1; } | ||
end() { echo travis_fold':'end:$1; } | ||
die() { set +v; echo "$*" 1>&2 ; sleep 1; exit 1; } | ||
|
||
CWL_NAME=workflow.cwl | ||
OUTPUT_NAME=test-output-actual | ||
for CWL_PATH in workflows/cwl/*/workflow.cwl; do | ||
cd `dirname $CWL_PATH` | ||
LABEL=`basename $PWD` | ||
start $LABEL | ||
mkdir $OUTPUT_NAME || echo 'Output directory already exists...' | ||
cd $OUTPUT_NAME | ||
../$CWL_NAME ../test-job.yml | ||
cd .. | ||
diff -w -r test-output-expected $OUTPUT_NAME -x .DS_Store | head -n100 | cut -c 1-100 | ||
end $LABEL | ||
done |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
input_directory: | ||
class: Directory | ||
path: test-input |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
a.txt | ||
z.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env cwl-runner | ||
|
||
cwlVersion: v1.0 | ||
class: CommandLineTool | ||
baseCommand: ls | ||
inputs: | ||
input_directory: | ||
type: Directory | ||
inputBinding: | ||
position: 1 | ||
stdout: | ||
ls.txt | ||
outputs: | ||
output_file: | ||
type: stdout |