Skip to content

Commit 99ebb93

Browse files
committed
sh.exe is now being removed from path on windows
1 parent 5878783 commit 99ebb93

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.travis.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,18 @@ language: rust
2828

2929
cache: cargo
3030

31+
before_script:
32+
# Remove sh.exe from the path otherwise CMake will complain:
33+
# "sh.exe was found in your PATH, here: C:/Program Files/Git/usr/bin/sh.exe"
34+
# and the MinGW build will not work (the Visual Studio build does not care).
35+
# See http://help.appveyor.com/discussions/problems/3193-cmake-building-for-mingw-issue-with-git-shexe
36+
# The entire directory containing sh.exe could be removed from the PATH environment:
37+
# - set PATH=%PATH:C:\Program Files\Git\usr\bin;=%
38+
# However, this will also remove all other programs in this directory from the PATH.
39+
# In particular "patch" is still required.
40+
# So, just rename sh.exe:
41+
- if [ "$TRAVIS_OS_NAME" = "windows" ]; then mv "C:\Program Files\Git\usr\bin\sh.exe" "C:\Program Files\Git\usr\bin\_sh.exe" ; fi
42+
3143
script:
3244
- cargo test --verbose --all
3345
- cargo test --verbose --all --no-default-features

0 commit comments

Comments
 (0)