diff --git a/.gitignore b/.gitignore index 291190e..95cf782 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,2 @@ -autobigs-cli_test_report.html -galaxy-server/** \ No newline at end of file +galaxy-server/** +test_results diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 0000000..0feccd8 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,27 @@ +pipeline { + agent { + kubernetes { + cloud 'rsys-devel' + defaultContainer 'pip' + } + } + stages { + stage ("install") { + steps { + sh 'pip install -r requirements.txt' + } + } + stage ("lint") { + steps { + sh "planemo lint autobigs-cli.xml" + } + } + stage ("test") { + steps { + sh 'mkdir test_results' + sh "planemo test autobigs-cli.xml --test_output_junit test_results/junit_results.xml --test_output_json test_results/results.json --test_output test_results/human.html" + xunit checksName: '', tools: [JUnit(excludesPattern: '', pattern: 'test_results/junit_report.xml', stopProcessingIfError: true)] + } + } + } +} \ No newline at end of file diff --git a/autobigs-cli.xml b/autobigs-cli.xml index 17866d6..5598a5b 100644 --- a/autobigs-cli.xml +++ b/autobigs-cli.xml @@ -54,19 +54,29 @@ - mode.operation == "st" + mode['operation'] == "st" - mode.operation == "info" + mode['operation'] == "info" - + - + + + + + + + + + + +