Advertisement
R4wizard

Untitled

Nov 19th, 2015
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. # Name: Grunt Runner
  2. # Type: preprocessor
  3. # Description: Executes the Gruntfile from the project repository.
  4.  
  5. [ "$(is_affected_branch $@)" == "false" ] && build_success "Does not affect this branch."
  6.  
  7. if [[ -f "Gruntfile.js" ]]; then
  8. echo "Running grunt file..."
  9.  
  10. [[ "$BUILD_BRANCH" == "master" ]] && export LD_ENVIRONMENT="production"
  11. [[ "$BUILD_BRANCH" == "develop" ]] && export LD_ENVIRONMENT="development"
  12.  
  13. npm install
  14. grunt
  15. rm -rf node_modules
  16. build_success "Grunt actions performed."
  17. else
  18. build_fail "Gruntfile.js not found, unable to start grunt."
  19. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement