Skip to content

Commit

Permalink
Merge pull request #18 from betrybe/add-timeout
Browse files Browse the repository at this point in the history
Corrige subida do servidor node
  • Loading branch information
renanvy authored Nov 9, 2021
2 parents e6c59b2 + 00fcabd commit e195e38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/bin/sh -l
set -x
set -e

run_npm_start=$1
wait_for_url=$2

npm install

if $run_npm_start ; then
npm start && npx wait-on $wait_for_url
npm start & # Open server in background
npx wait-on -t 300000 $wait_for_url # wait for server until timeout
fi

npm test -- --json --forceExit --outputFile=evaluation.json
Expand Down

0 comments on commit e195e38

Please sign in to comment.