From 8745a29317d0e1c4ca1c7f0ff94793b7433dae97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Mon, 29 Oct 2018 22:30:13 +0100 Subject: [PATCH] ci: update interop/js-api MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit License: MIT Signed-off-by: Ɓukasz Magiera --- ci/Jenkinsfile | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/ci/Jenkinsfile b/ci/Jenkinsfile index 595f7e6abb9..8799d7146d2 100644 --- a/ci/Jenkinsfile +++ b/ci/Jenkinsfile @@ -29,11 +29,11 @@ def build_platforms = [ ] /* js-* tests */ -def js_api_commit = 'e61155ae8edaee902cb3a1dcd8ba3d3afb093d1c' // 24.0.1 -def interop_commit = '6593ccdca5d7b4c747787f71f7ac4b5f6f1ab10b' +def js_api_commit = '587c787de8ec60efc1a812e74e44549d3ed33a75' // 26.1.2 +def interop_commit = '4085089c323ba19d60ca6f55872fbc2ac40e066c' def js_api_platforms = ['linux', 'macos'] -def js_api_node_versions = ['8.11.3', '10.4.1'] +def js_api_node_versions = ['10.11.0'] def yarn_version = '1.5.1' def yarn_path = './node_modules/.bin/yarn' @@ -128,8 +128,6 @@ def jsTestStep = { os, nodeVer, repo, commit -> dir('.js-test') { checkout changelog: false, scm: [$class: 'GitSCM', branches: [[name: commit]], userRemoteConfigs: [[url: repo]]] - //todo: deduplicate with https://github.com/ipfs/jenkins-libs/blob/master/vars/javascript.groovy somehow - fileExists 'package.json' nodejs(nodeVer) { sh 'rm -rf node_modules/' @@ -279,21 +277,11 @@ ansiColor('xterm') { withEnv(['TERM=xterm-color']) { ) } - //reportedStage('interop') { - // def steps = [:] - // js_api_platforms.each {os -> - // js_api_node_versions.each { nodeVer -> - // steps["interop-${os}-${nodeVer}"] = jsTestStep(os, nodeVer, 'https://github.com/ipfs/interop', interop_commit) - // } - // } - // - // parallel steps - //} - - reportedStage('apis') { + reportedStage('interop/apis') { def steps = [:] js_api_platforms.each {os -> js_api_node_versions.each { nodeVer -> + steps["interop-${os}-${nodeVer}"] = jsTestStep(os, nodeVer, 'https://github.com/ipfs/interop', interop_commit) steps["js-api-${os}-${nodeVer}"] = jsTestStep(os, nodeVer, 'https://github.com/ipfs/js-ipfs-api', js_api_commit) } }