| language: android |
| |
| jdk: |
| - &jdk_for_publishing oraclejdk8 |
| |
| android: |
| components: |
| - tools |
| - tools # Duplicated as per https://github.com/travis-ci/travis-ci/issues/6040#issuecomment-219367943 |
| - build-tools-25.0.0 |
| - android-25 |
| - platform-tools |
| - extra-android-m2repository |
| |
| before_install: |
| - sudo rm -f /etc/mavenrc |
| - wget http://www.us.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz |
| - tar -zxvf apache-maven-3.1.1-bin.tar.gz |
| - export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=192m" |
| - export M2_HOME=$PWD/apache-maven-3.1.1 |
| - export PATH=$M2_HOME/bin:$PATH |
| - mvn --version |
| |
| install: mvn -B -P!standard-with-extra-repos -U install clean --fail-never --quiet -DskipTests=true -Dinvoker.skip=true |
| |
| script: mvn -B -P!standard-with-extra-repos -U verify --fail-at-end -Dsource.skip=true -Dmaven.javadoc.skip=true |
| |
| env: |
| global: |
| - secure: eGc3LHBRIPmTnXLM1YoIqG1do9BkpFI2pJm3fz5Cd8UaXtf7Oefa+Ts3rcn4ipee5A+lf8kEouPshSoaQs81KZ2/qf8rSTCIqeFjHR8hzmOVYo/0zRfS/VSUT0yqN+jeRhuNk3+A49RTPlcfJqPv3tyddtrM1vF7axhCJPQIRJM= |
| - secure: LTzrlqcSNeZTOV52D3ibY9RBdxY4Yu8dUOYhAonrWLE+eDTzuoyCzcPw8pEcYVNUi1rG6Q7v3QBDTnBztsPoCbcN5tEGjw5cQEbfEzSTkWaNCFjncWn36cLwx9lgbF+5Db/L0mYJ36unDKUpKVC8AgOtxQibfv/ffugfxxj8ohY= |
| - secure: PEdRiHTy+xVFPnlBwOhr7RVW/QIFSgd4hO0LESRBeF7KGIjxTZWtKPjnYrysZFm6tozMk6WBVJO6avOss0v7L64nemwpCnSspNYBa6pRGPgQ3rv/wgdPSzqDDmABmpPC18EHbUtF94KVdRX3Cr4kmwKQyD+YUKNRCY11Txt+xfo= |
| - JDK_FOR_PUBLISHING: *jdk_for_publishing |
| |
| after_success: |
| - util/generate-latest-docs.sh |
| - util/publish-snapshot-on-commit.sh |
| |
| branches: |
| only: |
| - master |
| - /^release.*$/ |
| |
| cache: |
| directories: |
| - $HOME/.m2 |