68 lines
2.1 KiB
YAML
68 lines
2.1 KiB
YAML
# from https://raw.githubusercontent.com/gabrielemariotti/cardslib/master/.travis.yml
|
|
language: java
|
|
|
|
branches:
|
|
only:
|
|
- dev
|
|
- master
|
|
|
|
jdk: oraclejdk7
|
|
|
|
env:
|
|
global:
|
|
- ANDROID_SDK_VERSION="r22.6.2"
|
|
|
|
notifications:
|
|
email: true
|
|
|
|
before_install:
|
|
|
|
# environment info
|
|
- gradle -v
|
|
- uname -a
|
|
|
|
# required libs for android build tools
|
|
# Update a system for ia32 libraries
|
|
- sudo apt-get update -qq
|
|
- if [ `uname -m` = x86_64 ]; then sudo apt-get update; fi
|
|
- if [ `uname -m` = x86_64 ]; then sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch; fi
|
|
|
|
# for gradle output style
|
|
- export TERM=dumb
|
|
|
|
# newer version of gradle
|
|
# - wget http://services.gradle.org/distributions/gradle-1.12-bin.zip
|
|
# - unzip -qq gradle-1.12-bin.zip
|
|
# - export GRADLE_HOME=$PWD/gradle-1.11
|
|
# - export PATH=$GRADLE_HOME/bin:$PATH
|
|
|
|
# just to test gradle version, against our provided one
|
|
- gradle -v
|
|
|
|
# newest android SDK
|
|
- wget http://dl.google.com/android/android-sdk_${ANDROID_SDK_VERSION}-linux.tgz
|
|
- tar -zxf android-sdk_${ANDROID_SDK_VERSION}-linux.tgz
|
|
- export ANDROID_HOME=`pwd`/android-sdk-linux
|
|
- export PATH=${PATH}:${ANDROID_HOME}/tools:${ANDROID_HOME}/platform-tools
|
|
|
|
# manually set sdk.dir variable, according to local paths
|
|
- echo "sdk.dir=$ANDROID_HOME" > local.properties
|
|
|
|
# Install required components.
|
|
# For a full list, run `android list sdk -a --extended`
|
|
- echo yes | android update sdk --filter platform-tools --no-ui --force > /dev/null
|
|
- echo yes | android update sdk --all --filter build-tools-19.1.0 --no-ui --force > /dev/null
|
|
- echo yes | android update sdk --filter android-19 --no-ui --force > /dev/null
|
|
- echo yes | android update sdk --filter extra-android-support --no-ui --force > /dev/null
|
|
- echo yes | android update sdk --filter extra-android-m2repository --no-ui --force > /dev/null
|
|
|
|
# Otherwise
|
|
#- echo yes | android update sdk -t tools,platform-tools,extra-android-support,extra-android-m2repository,android-19 --force --no-ui
|
|
|
|
|
|
# Let's try to build...
|
|
install: gradle clean build
|
|
|
|
script: gradle check
|
|
|
|
|