working file-watch on windows

This commit is contained in:
2020-11-19 16:16:36 -07:00
parent 8588bfc8b7
commit 2832cc55fc
6 changed files with 33 additions and 4 deletions

View File

@@ -1,5 +1,12 @@
#! /bin/bash
haxelib dev kiss ../../
haxe build.hxml
python bin/main.py test
echo "" > test-output.txt
expected=$'hey\nhey\nhey'
if [[ $(uname) == *"MINGW"* ]] || [ $TRAVIS_OS_NAME = "windows" ]; then
expected=$'"hey" \r\n"hey" \r\n"hey"'
fi
haxe build.hxml && \
timeout 0.35 python bin/main.py test-file.txt 0.1 "echo {} >> test-output.txt" 0 || \
if [[ "$(cat test-output.txt)" != *"$expected"* ]]; then exit 1; fi