.travis.yml 882 B

1234567891011121314151617181920212223242526272829
  1. language: android
  2. sudo: false
  3. jdk:
  4. - oraclejdk8
  5. env:
  6. global:
  7. - ANDROID_TOOLS=${ANDROID_HOME}/tools
  8. before_install:
  9. - nvm install 6
  10. # ensure at least gradle 3.3 is in place.
  11. - wget http://services.gradle.org/distributions/gradle-3.3-bin.zip
  12. - unzip gradle-3.3-bin.zip
  13. - export GRADLE_HOME=$PWD/gradle-3.3
  14. - export PATH=${GRADLE_HOME}/bin:${ANDROID_HOME}:${ANDROID_HOME}/emulator:${ANDROID_TOOLS}:${ANDROID_TOOLS}/bin:${ANDROID_HOME}/platform-tools:$PATH
  15. - node --version
  16. - gradle --version
  17. - echo y | android --silent update sdk --no-ui --all --filter platform-tools,tools,build-tools-26.0.2,android-26,android-25,extra-google-m2repository,extra-android-m2repository
  18. android:
  19. components:
  20. - tools
  21. install:
  22. - npm install
  23. - npm install -g codecov
  24. script:
  25. - npm test
  26. - npm run cover
  27. after_script:
  28. - codecov