react-native-navigation的迁移库

travis.sh 531B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash -e
  2. lightCyan='\033[1;36m'
  3. green='\033[0;32m'
  4. nocolor='\033[0m'
  5. run_f () {
  6. cmd="${1}"
  7. name=${cmd//[ ]/_}
  8. echo "travis_fold:start:$name"
  9. echo -e "${lightCyan}\t\t $cmd ${nocolor}"
  10. SECONDS=0
  11. ($cmd)
  12. duration=$SECONDS
  13. echo "travis_fold:end:$name"
  14. echo -e "${green}\t\t\t --> $(($duration / 60)) minutes and $(($duration % 60)) seconds ${nocolor}\n"
  15. }
  16. run_f "yarn install"
  17. run_f "yarn run lint"
  18. run_f "yarn run test-js"
  19. run_f "yarn run test-android"
  20. run_f "yarn run test-ios"
  21. run_f "yarn run release"