react-native-navigation的迁移库

.travis.yml 970B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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 \
  25. update sdk --no-ui -a --filter
  26. tools,
  27. platform-tools,
  28. build-tools-25.0.0,
  29. android-23,
  30. addon-google_apis-google-24,
  31. extra-android-m2repository,
  32. extra-google-google_play_services,
  33. extra-google-m2repository
  34. script:
  35. - npm run test
  36. after_script:
  37. - echo "BUILD FINISHED"