Merge branch 'hotfix/21.56.9' into master
[gitter.git] / build-scripts / validate-modules-for-build.sh
blobb9c45bbd5cbca9f7af847d12a6a423f61ac5ffcf
1 #!/usr/bin/env bash
3 set -euo pipefail
4 IFS=$'\n\t'
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