react-native-navigation的迁移库

travis.sh 509B

123456789101112131415161718192021222324252627
  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 test-js"
  18. run_f "yarn run test-android"
  19. run_f "yarn run test-ios"
  20. run_f "yarn run release"