Commit 231873e9 authored by Joe Lim's avatar Joe Lim Committed by Joe Haddad
Browse files

one-line waiting for app start (#3411)

* one-line waiting for app start

* remove fixed todo
parent 36cd35d6
Showing with 3 additions and 19 deletions
+3 -19
...@@ -28,8 +28,6 @@ platform: ...@@ -28,8 +28,6 @@ platform:
- x64 - x64
install: install:
# TODO: Remove after https://github.com/appveyor/ci/issues/1426 is fixed
- set PATH=C:\Program Files\Git\mingw64\bin;%PATH%
- ps: Install-Product node $env:nodejs_version $env:platform - ps: Install-Product node $env:nodejs_version $env:platform
build: off build: off
...@@ -41,4 +39,4 @@ skip_commits: ...@@ -41,4 +39,4 @@ skip_commits:
test_script: test_script:
- node --version - node --version
- npm --version - npm --version
- sh tasks/e2e-%test_suite%.sh - bash tasks/e2e-%test_suite%.sh
...@@ -218,14 +218,7 @@ PORT=3001 \ ...@@ -218,14 +218,7 @@ PORT=3001 \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
NODE_PATH=src \ NODE_PATH=src \
nohup npm start &>$tmp_server_log & nohup npm start &>$tmp_server_log &
while true grep -q 'You can now view' <(tail -f $tmp_server_log)
do
if grep -q 'You can now view' $tmp_server_log; then
break
else
sleep 1
fi
done
E2E_URL="http://localhost:3001" \ E2E_URL="http://localhost:3001" \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true NODE_PATH=src \ CI=true NODE_PATH=src \
...@@ -287,14 +280,7 @@ PORT=3002 \ ...@@ -287,14 +280,7 @@ PORT=3002 \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
NODE_PATH=src \ NODE_PATH=src \
nohup npm start &>$tmp_server_log & nohup npm start &>$tmp_server_log &
while true grep -q 'You can now view' <(tail -f $tmp_server_log)
do
if grep -q 'You can now view' $tmp_server_log; then
break
else
sleep 1
fi
done
E2E_URL="http://localhost:3002" \ E2E_URL="http://localhost:3002" \
REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \ REACT_APP_SHELL_ENV_MESSAGE=fromtheshell \
CI=true NODE_PATH=src \ CI=true NODE_PATH=src \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment