language: java
before_install:
  - mvn --version
  # download the latest android sdk and unzip
  - sudo apt-get update -qq
  - if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi
  - wget http://dl.google.com/android/android-sdk_r22.3-linux.tgz
  - tar xzf android-sdk_r22.3-linux.tgz
  - export ANDROID_HOME=$PWD/android-sdk-linux
  - export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
  - echo yes | android update sdk -a --filter platform-tools,build-tools-19.0.1,android-19,extra-android-support,extra-android-m2repository --no-ui --force
  - which android
  - cp -R $ANDROID_HOME/extras/android/m2repository/com ~/.m2/repository
install:
  - mvn clean install -DskipTests=true -pl openxc -am
script:
  - mvn clean package -pl enabler
  - mvn test -pl openxc
  - mvn test -pl openxc-it

language: android
android:
  components:
    - platform-tools
    - android-19
    - sysimg-19
    - build-tools-19.0.1
    - extra-android-support
    - extra-android-m2repository
before_install:
  - cp -R $ANDROID_HOME/extras/android/m2repository/com ~/.m2/repository
install:
  - mvn clean install -DskipTests=true -pl openxc -am
script:
  - mvn test -pl openxc
  - mvn test -pl openxc-it
  - mvn package -pl enabler

Use new 'android' language on Travis CI.
Use new 'android' language on Travis CI.
