-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathadding_new_cwl_versions.txt
More file actions
12 lines (9 loc) · 861 Bytes
/
adding_new_cwl_versions.txt
File metadata and controls
12 lines (9 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
# discover the valid CWL files from the conformance tests:
cd ~/cwl-v1.1 # my local checkout of https://github.com/common-workflow-language/cwl-v1.1/
git ls-files -- tests | grep cwl$ | xargs -I{} bash -c 'cwltool --relax-path-checks --validate {} >/dev/null 2>/dev/null && echo {}' > valid_examples.txt
#git ls-files -- tests | grep cwl$ | xargs -I{} bash -c 'cwltool --relax-path-checks --validate {} >/dev/null 2>/dev/null || echo {}' > invalid_examples.txt
mkdir valid-examples; for file in $(cat valid_examples.txt); do cp ${file} valid-examples/valid_$(basename ${file}) ; done
# build the Java parser
schema-salad-tool --codegen java --codegen-package org.commonwl.cwlsdk.cwl1_1 --codegen-examples ~/cwl-v1.1/valid-examples ~/cwl-v1.1/CommonWorkflowLanguage.yml
mvn test
# copy missing files into ./src/test/resources/org/commonwl/cwlsdk/cwl1_1/utils