https://github.com/ctlab/phantasus
Revision 27703d81c1447dafe04289bd65bd9fa84271d74c authored by Maksim Kleverov on 16 October 2021, 13:22:53 UTC, committed by Space on 16 October 2021, 13:22:53 UTC
1 parent f6beb9f
Raw File
Tip revision: 27703d81c1447dafe04289bd65bd9fa84271d74c authored by Maksim Kleverov on 16 October 2021, 13:22:53 UTC
maybe fix quotes
Tip revision: 27703d8
.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") {
    container(displayName = "", image = "ctlab.registry.jetbrains.space/p/phantasus/phantasus-containers/phantasus-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"
            	}
        	}
        }
    	shellScript{
        	content = """
            	R CMD build .
                FILE=$(ls -1t *.tar.gz | head -n 1)
                R CMD check "${'$'}FILE"
                bash inst/test_js.sh
                Rscript -e "library(BiocCheck); BiocCheck(\"${'$'}{FILE}\")"
                Rscript -e 'covr::codecov()'
            """
        }
    }
}

back to top