Guest User

Untitled

a guest
May 9th, 2018
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. #!/bin/sh
  2. #!/bin/sh
  3.  
  4. echo "Running Node tests"
  5. PATH=$PATH:/usr/local/bin:/usr/local/sbin
  6.  
  7. git stash -q --include-untracked
  8. git clean -f
  9.  
  10. cd Node
  11. npm run test_without_revert
  12. RESULT=$?
  13.  
  14. npm run revert_test;
  15. cd ..
  16. git stash pop -q
  17.  
  18. [ $RESULT -ne 0 ] && exit 1
  19. echo "Node tests OK"
  20.  
  21. echo "Running React tests"
  22. PATH=$PATH:/usr/local/bin:/usr/local/sbin
  23.  
  24. git stash -q --include-untracked
  25. git clean -f
  26.  
  27. cd React
  28. pwd
  29. npm run lint && npm test
  30. RESULT=$?
  31.  
  32. cd ..
  33. git stash pop -q
  34.  
  35. [ $RESULT -ne 0 ] && exit 1
  36. echo "React tests OK"
Advertisement
Add Comment
Please, Sign In to add comment