react-native-navigation的迁移库

1234567891011121314151617181920212223242526272829
  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-unit-android"
  19. run_f "yarn run test-unit-ios -- release"
  20. run_f "yarn run test-e2e-android"
  21. run_f "yarn run test-e2e-ios -- release"
  22. run_f "yarn run release"