https://github.com/ctlab/phantasus
Revision f6beb9f7ea87f7d391f90027498814a9f9ad3599 authored by Maksim Kleverov on 16 October 2021, 13:15:10 UTC, committed by Space on 16 October 2021, 13:15:10 UTC
1 parent 8dca547
Raw File
Tip revision: f6beb9f7ea87f7d391f90027498814a9f9ad3599 authored by Maksim Kleverov on 16 October 2021, 13:15:10 UTC
fix quotes and return statOn condition
Tip revision: f6beb9f
.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