react-native-navigation的迁移库

travis-fold.sh 350B

12345678910111213141516171819
  1. #!/bin/bash -e
  2. lightCyan='\033[1;36m'
  3. green='\033[0;32m'
  4. nocolor='\033[0m'
  5. cmd="${1}"
  6. name=${cmd//[ ]/_}
  7. echo "travis_fold:start:$name"
  8. echo -e "${lightCyan}\t\t $cmd ${nocolor}"
  9. SECONDS=0
  10. ($cmd)
  11. duration=$SECONDS
  12. echo "travis_fold:end:$name"
  13. echo -e "${green}\t\t\t --> $(($duration / 60)) minutes and $(($duration % 60)) seconds ${nocolor}\n"