6 SCRIPT_DIR
="$( cd "$
( dirname "${BASH_SOURCE[0]}" )" && pwd )"
8 ## For some reason, the node_modules in jenkins sometimes appears to be missing
9 ## some of these files. If any of them are missing, we need to do a full
10 ## npm install from the makefile
12 if ! [[ -x ${SCRIPT_DIR}/..
/node_modules
/.bin
/gulp
]]; then echo "Missing gulp"; exit 1; fi
13 if ! [[ -x ${SCRIPT_DIR}/..
/node_modules
/.bin
/nyc
]]; then echo "Missing nyc"; exit 1; fi
14 if ! [[ -x ${SCRIPT_DIR}/..
/node_modules
/.bin
/mocha
]]; then echo "Missing mocha"; exit 1; fi