Merge pull request #75 from smoratinos/master
a readlink alternative in bash test script
This commit is contained in:
commit
b4b8d95424
3 changed files with 10 additions and 19 deletions
|
@ -1,13 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# full script path include his name
|
# full script path
|
||||||
_script="$(readlink -f ${BASH_SOURCE[0]})"
|
_scriptDir="$(cd "$(dirname "$0")" && pwd -P)"
|
||||||
|
|
||||||
# Script location path (dir)
|
|
||||||
_base="$(dirname $_script)"
|
|
||||||
|
|
||||||
sleep 5
|
sleep 5
|
||||||
cd $_base
|
cd $_scriptDir
|
||||||
cd ../
|
cd ../
|
||||||
until node_modules/karma/bin/karma start; do
|
until node_modules/karma/bin/karma start; do
|
||||||
echo "Karma crashed with exit code $?. Respawning.." >&2
|
echo "Karma crashed with exit code $?. Respawning.." >&2
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# full script path include his name
|
# full script path
|
||||||
_script="$(readlink -f ${BASH_SOURCE[0]})"
|
_scriptDir="$(cd "$(dirname "$0")" && pwd -P)"
|
||||||
|
|
||||||
# Script location path (dir)
|
cd $_scriptDir
|
||||||
_base="$(dirname $_script)"
|
|
||||||
|
|
||||||
cd $_base
|
|
||||||
cd ../
|
cd ../
|
||||||
node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --autotest --captureExceptions
|
node_modules/jasmine-node/bin/jasmine-node test/server/ --coffee --autotest --captureExceptions
|
||||||
|
|
|
@ -1,11 +1,8 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# full script path include his name
|
# full script path
|
||||||
_script="$(readlink -f ${BASH_SOURCE[0]})"
|
_scriptDir="$(cd "$(dirname "$0")" && pwd -P)"
|
||||||
|
|
||||||
# Script location path (dir)
|
|
||||||
_base="$(dirname $_script)"
|
|
||||||
|
|
||||||
cd $_base
|
cd $_scriptDir
|
||||||
cd ../
|
cd ../
|
||||||
node_modules/.bin/nodemon . --ext ".coffee|.js" --watch server --watch server.coffee --unittest
|
node_modules/.bin/nodemon . --ext ".coffee|.js" --watch server --watch server.coffee --unittest
|
||||||
|
|
Reference in a new issue