react-native-navigation的迁移库

travis.sh 368B

123456789101112131415161718192021222324
  1. #!/bin/bash -e
  2. color='\033[1;36m'
  3. nocolor='\033[0m'
  4. run_f () {
  5. cmd="${1}"
  6. name=${cmd//[ ]/_}
  7. echo "travis_fold:start:$name"
  8. echo -e "${color}\t $cmd \t${nocolor}"
  9. ($cmd)
  10. echo "travis_fold:end:$name"
  11. }
  12. run_f "yarn install"
  13. run_f "yarn run lint"
  14. run_f "yarn run test-js"
  15. run_f "yarn run test-android"
  16. run_f "yarn run test-ios"
  17. run_f "yarn run release"