aboutsummaryrefslogtreecommitdiffstats
path: root/.travis.yml
blob: 77d19fceed41ef1d2c92f915e4b811fa97abd475 (plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
language: android
jdk: openjdk7
sudo: false

env:
  global:
    - NDK_VERSION=r10e

cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/dists/
    - $HOME/.cache/ndk

addons:
  apt:
    packages:
      - ia32-libs
      - ia32-libs-multiarch
      - libgd2-xpm
      - p7zip-full

before_script:
  # newest Android NDK
  - mkdir -p $HOME/.cache/ndk
  - curl https://dl.google.com/android/ndk/android-ndk-${NDK_VERSION}-linux-x86_64.bin -z $HOME/.cache/ndk/ndk-${NDK_VERSION}.bin -o $HOME/.cache/ndk/ndk-${NDK_VERSION}.bin
  - 7z x -y $HOME/.cache/ndk/ndk-${NDK_VERSION}.bin | grep -v 'ing  '
  - echo "ndk.dir=`pwd`/android-ndk-${NDK_VERSION}" >> local.properties

android:
  components:
    - build-tools-22.0.1
    - android-22
    - extra-android-support
    - extra-android-m2repository
  license:
    - '.+'

script: ./gradlew build check jacocoTestDebugReport

after_success: ./gradlew coveralls