From 79ac7bb9a3ad57783e11f9451e74e6d379006460 Mon Sep 17 00:00:00 2001 From: Ewan Harris Date: Mon, 23 Sep 2019 16:27:59 +0100 Subject: [PATCH] ci: stash and unstash required files for cli tests --- Jenkinsfile | 2 ++ package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index cac7fa8ab13..2c36f6011aa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -171,6 +171,7 @@ def unitTests(os, nodeVersion, npmVersion, testSuiteBranch, testOnDevices) { def cliUnitTests(nodeVersion, npmVersion) { return { node('git && osx') { // ToDo: refactor to try and run across mac, linux, and windows? + unstash 'cli-unit-tests' nodejs(nodeJSInstallationName: "node ${nodeVersion}") { ensureNPM(npmVersion) sh 'npm ci' @@ -237,6 +238,7 @@ timestamps { if (runDanger) { // Stash files for danger.js later stash includes: 'package.json,package-lock.json,dangerfile.js,.eslintignore,.eslintrc,npm_test.log,android/**/*.java', name: 'danger' } + stash includes: 'package.json,package-lock.json,android/cli/**,iphone/cli/**', name: 'cli-unit-tests' // was it a failure? if (npmTestResult != 0) { error readFile('npm_test.log') diff --git a/package.json b/package.json index a8e3edf26f7..47256fafc00 100644 --- a/package.json +++ b/package.json @@ -144,7 +144,7 @@ "engines": { "node": ">=8" }, - "nyc" : { + "nyc": { "exclude": [ "**/cli/tests/test-*.js" ],