Revision 38879f1eeb025e53a5a596679d8f884dc6397954 authored by Maksim Kleverov on 18 October 2021, 15:15:53 UTC, committed by Space on 18 October 2021, 15:15:53 UTC
1 parent a4307ee
.space.kts
/**
* JetBrains Space Automation
* This Kotlin-script file lets you automate build activities
* For more info, see https://www.jetbrains.com/help/space/automation.html
*/
job("build and test in latest preimage") {
startOn {
//push in preimage repo
gitPush {
repository = "phantasus-preimage"
branchFilter {
+"refs/heads/master"
}
}
//push in phantasus repo
gitPush {
branchFilter {
+"refs/heads/master"
+"refs/heads/space_jobs"
}
}
}
container(displayName = "Build R package and copy to share", image = "ctlab.registry.jetbrains.space/p/phantasus/phantasus-containers/phantasus-preimage") {
shellScript {
content = """
R CMD build .
FILE=${'$'}(ls -1t *.tar.gz | head -n 1)
cp ${'$'}FILE $mountDir/share/
"""
}
}
container(displayName = "Check builded package", image = "ctlab.registry.jetbrains.space/p/phantasus/phantasus-containers/phantasus-preimage") {
shellScript {
content = """
FILE=${'$'}(ls -1t $mountDir/share/*.tar.gz | head -n 1)
R CMD check "${'$'}FILE"
"""
}
}
container(displayName = "Check js", image = "ctlab.registry.jetbrains.space/p/phantasus/phantasus-containers/phantasus-preimage") {
shellScript {
content = """
apt install nodejs
apt install npm
bash inst/test_js.sh
"""
}
}
container(displayName = "BioCheck", image = "ctlab.registry.jetbrains.space/p/phantasus/phantasus-containers/phantasus-preimage") {
shellScript {
content = """
FILE=${'$'}(ls -1t $mountDir/share/*.tar.gz | head -n 1)
Rscript -e "library(BiocCheck); BiocCheck(\"${'$'}{FILE}\")"
"""
}
}
container(displayName = "code covr", image = "ctlab.registry.jetbrains.space/p/phantasus/phantasus-containers/phantasus-preimage") {
shellScript {
content = """
Rscript -e "install.packages(\"covr\")"
Rscript -e 'covr::codecov()'
"""
}
}
}
Computing file changes ...