-
-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error spawn tests on windows 10 Pro #309
Comments
In the Windows Command shell, type is a built-in command which displays the contents of a text file. In your shell, it is overridden by |
I am using git-bash on windows 10, everything works well |
fixed by creating custom bash script and run it under
#!/usr/bin/env bash
# put these on top of file
(set -o igncr) 2>/dev/null && set -o igncr; # cygwin encoding fix
# absolute path working directory
basecwd=${PWD}
# base script directory
basedir=`dirname "$0"`
# absolute path script directory
SCRIPT_DIR=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
# get script path
SCRIPT=$(realpath "$0")
SCRIPTPATH=$(dirname "$SCRIPT")
case `uname` in
*CYGWIN*)
basedir=`cygpath -w "$basedir"`
# make cygwin bin as priority
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH"
;;
esac
# parse and export .env file (dotenv)
if [ -f ".env" ]; then
# Export the vars in .env into your shell:
export $(egrep -v '^#' .env | xargs)
fi
npm run test
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
error like below screenshot
but succesfull in CI https://github.com/dimaslanjaka/hexo-util/actions

The text was updated successfully, but these errors were encountered: