Jenkinsfile setup

This commit is contained in:
Ștefan Talpalaru 2019-11-11 22:43:40 +01:00 committed by zah
parent 8f2e523d26
commit d5f20846ad
4 changed files with 41 additions and 7 deletions

42
Jenkinsfile vendored
View File

@ -1,9 +1,43 @@
node('linux') {
stage('Clone') {
def runStages() {
stage("Clone") {
/* The Git repo seems to be cached in some Jenkins plugin, so this is not always a clean clone. */
checkout scm
sh "make build-system-checks || true"
}
stage('Build') {
sh 'echo "nproc:"; nproc'
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 */
}
stage("Test") {
parallel(
"tools": {
stage("Tools") {
sh "make -j${env.NPROC}"
}
},
"test suite": {
stage("Test suite") {
sh "make -j${env.NPROC} test"
}
}
)
}
}
parallel(
"Linux": {
node("linux") {
withEnv(["NPROC=${sh(returnStdout: true, script: 'nproc').trim()}"]) {
runStages()
}
}
},
"macOS": {
node("macos") {
withEnv(["NPROC=${sh(returnStdout: true, script: 'sysctl -n hw.logicalcpu').trim()}"]) {
runStages()
}
}
}
)

View File

@ -13,7 +13,7 @@ BUILD_SYSTEM_DIR := vendor/nimbus-build-system
# we don't want an error here, so we can handle things later, in the build-system-checks target
-include $(BUILD_SYSTEM_DIR)/makefiles/variables.mk
TOOLS := beacon_node bench_bls_sig_agggregation state_sim ncli_hash_tree_root ncli_pretty ncli_signing_root ncli_transition process_dashboard deposit_contract
TOOLS := beacon_node bench_bls_sig_agggregation ncli_hash_tree_root ncli_pretty ncli_signing_root ncli_transition process_dashboard deposit_contract
TOOLS_DIRS := beacon_chain benchmarks research ncli tests/simulation
TOOLS_CSV := $(subst $(SPACE),$(COMMA),$(TOOLS))

@ -1 +1 @@
Subproject commit 68ed95957d614fa91d0b20bdeea3cf876c46c120
Subproject commit e3fd23e90f661f51f028f78202eb4de1e6128ea9

@ -1 +1 @@
Subproject commit 28e88efada2ae62cecf51b29ea52c69d842db051
Subproject commit a13a7efa9fd3bb2fdd2537821b0f687296f8d461