Merge branch 'jenkins' into devel

This commit is contained in:
Ștefan Talpalaru 2019-12-03 18:27:02 +01:00
commit 2ce2cbf869
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9

60
Jenkinsfile vendored
View File

@ -1,26 +1,44 @@
def runStages() { def runStages() {
stage("Clone") { try {
/* The Git repo seems to be cached in some Jenkins plugin, so this is not always a clean clone. */ stage("Clone") {
checkout scm // The Git repo seems to be cached in some Jenkins plugin, so this is not always a clean clone.
sh "make build-system-checks || true" checkout scm
} sh "make build-system-checks || true"
stage("Build") { }
sh "make -j${env.NPROC} update" /* to allow a newer Nim version to be detected */
sh "make -j${env.NPROC} V=1 deps" /* to allow the following parallel stages */ // caching doesn't work; extension probably not configured
}
stage("Test") { //cache(maxCacheSize: 250, caches: [
parallel( //[$class: "ArbitraryFileCache", excludes: "", includes: "**/*", path: "${WORKSPACE}/vendor/nimbus-build-system/vendor/Nim/bin"],
"tools": { //[$class: "ArbitraryFileCache", excludes: "", includes: "**/*", path: "${WORKSPACE}/vendor/go/bin"],
stage("Tools") { //[$class: "ArbitraryFileCache", excludes: "", includes: "**/*", path: "${WORKSPACE}/jsonTestsCache"]
sh "make -j${env.NPROC}" //]) {
} stage("Build") {
}, sh "make -j${env.NPROC} update" /* to allow a newer Nim version to be detected */
"test suite": { sh "make -j${env.NPROC} deps" /* to allow the following parallel stages */
stage("Test suite") { sh "scripts/setup_official_tests.sh jsonTestsCache"
sh "make -j${env.NPROC} test"
}
} }
) //}
stage("Test") {
parallel(
"tools": {
stage("Tools") {
sh "make -j${env.NPROC}"
}
},
"test suite": {
stage("Test suite") {
sh "make -j${env.NPROC} DISABLE_TEST_FIXTURES_SCRIPT=1 test"
}
}
)
}
} catch(e) {
echo "'${env.STAGE_NAME}' stage failed"
throw e
} finally {
cleanWs()
} }
} }