[TASK] bamboo: Use yarn instead of npm install 37/55337/2
authorChristian Kuhn <lolli@schwarzbu.ch>
Thu, 11 Jan 2018 19:13:57 +0000 (20:13 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 11 Jan 2018 20:05:30 +0000 (21:05 +0100)
With the switch from npm install to yarn install we
forgot to adapt the test suites. Update plan specs.

Change-Id: Ibced9d53a4abf73b33e95027a61263f19cd94e56
Resolves: #83544
Related: #83038
Releases: master, 8.7
Reviewed-on: https://review.typo3.org/55337
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Build/bamboo/src/main/java/core/AbstractCoreSpec.java

index b107551..bb3b3d2 100644 (file)
@@ -495,11 +495,14 @@ abstract public class AbstractCoreSpec {
                 this.getTaskGitCloneRepository(),
                 this.getTaskGitCherryPick(),
                 this.getTaskComposerInstall(),
-                new NpmTask()
-                    .description("npm install in Build/ dir")
-                    .nodeExecutable("Node.js")
-                    .workingSubdirectory("Build/")
-                    .command("install"),
+                new ScriptTask()
+                    .description("yarn install in Build/ dir")
+                    .interpreter(ScriptTaskProperties.Interpreter.BINSH_OR_CMDEXE)
+                    .inlineBody(
+                        this.getScriptTaskBashInlineBody() +
+                        "yarn install"
+                    )
+                    .workingSubdirectory("Build/"),
                 new ScriptTask()
                     .description("Run tests")
                     .interpreter(ScriptTaskProperties.Interpreter.BINSH_OR_CMDEXE)
@@ -562,11 +565,14 @@ abstract public class AbstractCoreSpec {
             .tasks(
                 this.getTaskGitCloneRepository(),
                 this.getTaskGitCherryPick(),
-                new NpmTask()
-                    .description("npm install in Build/ dir")
-                    .nodeExecutable("Node.js")
-                    .workingSubdirectory("Build/")
-                    .command("install"),
+                new ScriptTask()
+                    .description("yarn install in Build/ dir")
+                    .interpreter(ScriptTaskProperties.Interpreter.BINSH_OR_CMDEXE)
+                    .inlineBody(
+                        this.getScriptTaskBashInlineBody() +
+                        "yarn install"
+                    )
+                    .workingSubdirectory("Build/"),
                 new NpmTask()
                     .description("Run npm lint")
                     .nodeExecutable("Node.js")