tenebrous-dicebot/api/node_modules/ts-protoc-gen/travis-ci-build.sh

13 lines
254 B
Bash
Executable File

#!/bin/bash
set -ex
npm run lint
npm test
npm run generate
MODIFIED_FILES=$(git diff --name-only)
if [[ -n $MODIFIED_FILES ]]; then
echo "ERROR: Changes detected in generated code, please run 'npm run generate' and check-in the changes."
exit 1
fi