Began Jenkinsfile pipeline writing
Some checks failed
autoBIGS.galaxy/pipeline/head There was a failure building this commit

This commit is contained in:
Harrison Deng 2025-02-21 18:31:34 +00:00
parent 8cb0e17ed3
commit bca38d5838
5 changed files with 43 additions and 6 deletions

4
.gitignore vendored
View File

@ -1,2 +1,2 @@
autobigs-cli_test_report.html
galaxy-server/**
galaxy-server/**
test_results

27
Jenkinsfile vendored Normal file
View File

@ -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)]
}
}
}
}

View File

@ -54,19 +54,29 @@
</inputs>
<outputs>
<data name="mlst_profiles_output" label="${tool.name} on ${on_string}" format="csv">
<filter>mode.operation == "st"</filter>
<filter>mode['operation'] == "st"</filter>
</data>
<data name="info_out" label="${tool.name} supported databases/schemas" format="csv">
<filter>mode.operation == "info"</filter>
<filter>mode['operation'] == "info"</filter>
</data>
</outputs>
<tests>
<test expect_num_outputs="1">
<param name="operation" value="st" />
<param name="fastas" value="tohama_I_bpertussis.fasta" />
<param name="fastas" value="tohama_I_bpertussis_wgs.fasta" />
<param name="seqdefdb" value="pubmlst_bordetella_seqdef" />
<param name="schema" value="3" />
<output name="mlst_profiles_output" file="results.csv" ftype="csv" />
<output name="mlst_profiles_output" file="tohama_I_bpertussis_wgs_typed.csv" ftype="csv" />
</test>
<test expect_num_outputs="1">
<param name="operation" value="info" />
<param name="retrieved" value="databases" />
<output name="info_out">
<assert_contents>
<has_line line="BIGSdb Names,Source"/>
<has_line line="pubmlst_bordetella_seqdef,https://bigsdb.pasteur.fr/api"/>
</assert_contents>
</output>
</test>
</tests>
<help><![CDATA[