react-native-navigation的迁移库

.travis.yml 877B

123456789101112131415161718192021222324252627282930313233343536
  1. language: node_js
  2. node_js:
  3. - "node"
  4. git:
  5. depth: 3
  6. branches:
  7. only:
  8. - master
  9. cache:
  10. directories:
  11. - $HOME/.yarn-cache
  12. before_install:
  13. - set -e
  14. # clean
  15. - watchman watch-del-all 2> /dev/null || true
  16. - rm -rf "$TMPDIR/react-packager-*" || true
  17. install:
  18. #- npm i -g yarn
  19. #- yarn
  20. # download android sdk
  21. - curl --location https://dl.google.com/android/android-sdk_r24.4.1-linux.tgz | tar -x -z -C $HOME
  22. - export ANDROID_HOME=$HOME/android-sdk-linux
  23. - export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
  24. - ( sleep 5 && while [ 1 ]; do sleep 1; echo y; done ) | android update sdk --no-ui -a --filter tools,platform-tools,build-tools-25.0.0,android-23,addon-google_apis-google-24,extra-android-m2repository,extra-google-google_play_services,extra-google-m2repository
  25. script:
  26. - npm run test
  27. after_script:
  28. - echo "BUILD FINISHED"