From 1941cfed80019139fc934ded1611f212ba20cdae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Mon, 13 Jan 2020 20:58:12 +0100 Subject: [PATCH] CI: also build native libp2p tool variants --- .travis.yml | 1 + Jenkinsfile | 5 +++++ azure-pipelines.yml | 1 + 3 files changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 64e4261ab..d48f847c3 100644 --- a/.travis.yml +++ b/.travis.yml @@ -56,5 +56,6 @@ script: # Building Nim-1.0.4 takes up to 10 minutes on Travis - the time limit after which jobs are cancelled for having no output - make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" V=1 update # to allow a newer Nim version to be detected - make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" + - make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" NIMFLAGS="-d:NETWORK_TYPE=libp2p" - make -j${NPROC} NIMFLAGS="--parallelBuild:${NPROC}" DISABLE_TEST_FIXTURES_SCRIPT=1 test diff --git a/Jenkinsfile b/Jenkinsfile index 4055335a6..45ba0bd45 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,6 +24,11 @@ def runStages() { sh "make -j${env.NPROC}" } }, + "tools (native libp2p)": { + stage("Tools (native libp2p)") { + sh "make -j${env.NPROC} NIMFLAGS='-d:NETWORK_TYPE=libp2p'" + } + }, "test suite": { stage("Test suite") { sh "make -j${env.NPROC} DISABLE_TEST_FIXTURES_SCRIPT=1 test" diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 446fbb740..d75d41e07 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -69,6 +69,7 @@ jobs: mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} CI_CACHE=NimBinaries update mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} fetch-dlls mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} P2PD_CACHE=p2pdCache + mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} P2PD_CACHE=p2pdCache NIMFLAGS="-d:NETWORK_TYPE=libp2p" file build/beacon_node mingw32-make -j2 ARCH_OVERRIDE=${PLATFORM} DISABLE_TEST_FIXTURES_SCRIPT=1 test displayName: 'build and test'