react-native-navigation的迁移库

.travis.yml 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. cache:
  15. directories:
  16. - $HOME/.yarn-cache
  17. - $HOME/.gradle/caches/
  18. - $HOME/.gradle/wrapper/
  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. - rm -rf $HOME/.gradle/caches/*/classAnalysis/cache.properties.lock
  25. - rm -rf $HOME/.gradle/caches/*/classAnalysis/classAnalysis.bin
  26. - rm -rf $HOME/.gradle/caches/*/jarSnapshots/cache.properties.lock
  27. - rm -rf $HOME/.gradle/caches/modules-2/metadata-2.16/module-metadata.bin
  28. - rm -rf $HOME/.gradle/caches/modules-2/metadata-2.16/module-versions.bin
  29. before_install:
  30. - set -e
  31. - ./scripts/clean.sh
  32. install:
  33. - nvm install $NODE_VERSION
  34. - npm i -g yarn
  35. - yarn
  36. script:
  37. - yarn run lint
  38. - yarn run test:js
  39. - ./scripts/installAndroidSDK.sh
  40. - yarn run test:android
  41. after_script:
  42. - echo "BUILD FINISHED"