Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Name: Grunt Runner
- # Type: preprocessor
- # Description: Executes the Gruntfile from the project repository.
- [ "$(is_affected_branch $@)" == "false" ] && build_success "Does not affect this branch."
- if [[ -f "Gruntfile.js" ]]; then
- echo "Running grunt file..."
- [[ "$BUILD_BRANCH" == "master" ]] && export LD_ENVIRONMENT="production"
- [[ "$BUILD_BRANCH" == "develop" ]] && export LD_ENVIRONMENT="development"
- npm install
- grunt
- rm -rf node_modules
- build_success "Grunt actions performed."
- else
- build_fail "Gruntfile.js not found, unable to start grunt."
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement