From 17ebdc8ba71a48623f2ce745e1921f93b80279da Mon Sep 17 00:00:00 2001 From: Mike Bland Date: Sat, 30 Sep 2017 12:13:37 -0400 Subject: [PATCH] .appveyor.yml: Put `/usr/bin` first in `PATH` The previous commit failed with the same errors as before: https://ci.appveyor.com/project/mbland/go-script-bash/build/v1.6.0.3 Upon closer inspection, both of the failing tests executed `perl`. Indeed, the Appveyor images have Perl installed separately from Git and available in the PATH: https://www.appveyor.com/docs/build-environment/#perl This Perl is most likely doing the Unix-to-native path translation. This change attempts to fix the tests by ensuring the MSYS2 Perl that comes with Git for Windows will get executed instead. --- .appveyor.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 9fffeec..189a836 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -11,4 +11,5 @@ build: off test_script: - where bash - bash --version - - bash -c './go test' + - bash -c 'echo PATH="$PATH"' + - bash -c 'PATH="/usr/bin:$PATH" ./go test'