From f8670ab04b8c6da6bf4e68051043b9e972f7f7b7 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Tue, 20 Sep 2016 22:37:46 +0200 Subject: [PATCH 1/2] use latest appveyor image --- appveyor.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index aa3e413f..2326eb5d 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,9 +1,5 @@ version: "master-{build}" -# fix for retrieving progress information for local execution -# see: http://help.appveyor.com/discussions/problems/5170-progresspreference-not-works-always-shown-preparing-modules-for-first-use-in-stderr -image: Previous Visual Studio 2015 - platform: - x64 From 42457bef83713d5c9a243f616e7020cb7dd9a339 Mon Sep 17 00:00:00 2001 From: Christoph Hartmann Date: Tue, 20 Sep 2016 22:42:24 +0200 Subject: [PATCH 2/2] run powershell with -noprofile option --- lib/train/extras/command_wrapper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/train/extras/command_wrapper.rb b/lib/train/extras/command_wrapper.rb index 558c14d9..716d1796 100644 --- a/lib/train/extras/command_wrapper.rb +++ b/lib/train/extras/command_wrapper.rb @@ -137,7 +137,7 @@ def run(script) # especially in local mode, we cannot be sure that we get a Powershell # we may just get a `cmd`. # TODO: we may want to opt for powershell.exe -command instead of `encodeCommand` - "powershell -encodedCommand #{encoded(safe_script(script))}" + "powershell -NoProfile -encodedCommand #{encoded(safe_script(script))}" end # suppress the progress stream from leaking to stderr