react-native-navigation的迁移库

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. language: java
  2. jdk:
  3. - oraclejdk8
  4. env:
  5. global:
  6. - NODE_VERSION=stable
  7. - ANDROID_HOME=$HOME/android-sdk-linux
  8. - PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
  9. git:
  10. depth: 3
  11. branches:
  12. only:
  13. - master
  14. - v2
  15. cache:
  16. directories:
  17. - $HOME/.yarn-cache
  18. - $HOME/.gradle/
  19. - $HOME/.m2
  20. - $ANDROID_HOME/licenses/
  21. before_cache:
  22. - rm -rf $HOME/.gradle/caches/modules-2/modules-2.lock
  23. - rm -rf $HOME/.gradle/caches/*/plugin-resolution/
  24. before_install:
  25. - set -e
  26. - ./scripts/clean.sh
  27. install:
  28. - nvm install $NODE_VERSION
  29. - npm i -g yarn
  30. - yarn
  31. script:
  32. - yarn run lint
  33. - yarn run test:js
  34. - ./scripts/installAndroidSDK.sh
  35. - yarn run test:android
  36. after_script:
  37. - echo "BUILD FINISHED"