react-native-navigation的迁移库

travis.sh 650B

123456789101112131415161718192021222324252627282930
  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 clean"
  18. run_f "yarn run test-js"
  19. run_f "yarn run test-unit-android -- release"
  20. run_f "yarn run test-unit-ios -- release"
  21. run_f "yarn run test-e2e-android -- release"
  22. run_f "yarn run test-e2e-ios -- release"
  23. run_f "yarn run release"