File: .travis.yml

package info (click to toggle)
easymock 4.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,732 kB
  • sloc: java: 14,510; xml: 2,129; sh: 144; makefile: 6
file content (25 lines) | stat: -rw-r--r-- 1,139 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
language: java
sudo: false
cache:
  directories:
    # Android SDK
    - $HOME/android-sdk-dl
    - $HOME/android-sdk

    # Android build cache (see http://tools.android.com/tech-docs/build-cache)
    - $HOME/.android/build-cache
install:
  # Download and unzip the Android SDK tools (if not already there thanks to the cache mechanism)
  - if test ! -e $HOME/android-sdk-dl/tools_r25.2.5-linux.zip ; then curl https://dl.google.com/android/repository/tools_r25.2.5-linux.zip > $HOME/android-sdk-dl/tools_r25.2.5-linux.zip ; fi
  - unzip -n $HOME/android-sdk-dl/tools_r25.2.5-linux.zip -d $HOME/android-sdk

  # Install or update Android SDK components (will not do anything if already up to date thanks to the cache mechanism)
  - yes | $HOME/android-sdk/tools/bin/sdkmanager 'tools'
  - yes | $HOME/android-sdk/tools/bin/sdkmanager 'platform-tools'
  - yes | $HOME/android-sdk/tools/bin/sdkmanager 'build-tools;27.0.1'
  - yes | $HOME/android-sdk/tools/bin/sdkmanager 'platforms;android-27'
env:
  - ANDROID_HOME=$HOME/android-sdk
script:
  - mvn install -DskipTests=true -Dmaven.javadoc.skip=true -Pall,fullBuild -B -V
  - mvn test -B