forked from kshoji/USB-MIDI-Driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
30 lines (30 loc) · 1.76 KB
/
.travis.yml
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
language: java
jdk: oraclejdk7
before_install:
# make executable gradlew
- chmod +x gradlew
- 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 > /dev/null; fi
# install Android SDK
- wget http://dl.google.com/android/android-sdk_r24.4.1-linux.tgz
- tar xzf android-sdk_r24.4.1-linux.tgz
- export ANDROID_HOME=`pwd`/android-sdk-linux
- echo $ANDROID_HOME
- echo "sdk.dir=$ANDROID_HOME" > local.properties
- export PATH=$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools:${PATH}
- echo ${PATH}
# install Android libraries
- echo yes | android update sdk --all --filter platform-tools --no-ui --force
- echo yes | android update sdk --all --filter build-tools-23.0.2 --no-ui --force
- echo yes | android update sdk --all --filter android-23 --no-ui --force
- echo yes | android update sdk --all --filter extra-android-support --no-ui --force
- echo yes | android update sdk --all --filter extra-android-m2repository --no-ui --force
- echo yes | android update sdk --all --filter addon-google_apis-google-23 --no-ui --force
# install maven 3.1.1
- "wget http://www.us.apache.org/dist/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz && tar xfz apache-maven-3.1.1-bin.tar.gz && sudo mv apache-maven-3.1.1 /usr/local/maven-3.1.1 && sudo rm -f /usr/local/maven && sudo ln -s /usr/local/maven-3.1.1 /usr/local/maven"
- mvn --version
- git clone https://github.com/simpligility/maven-android-sdk-deployer && cd ./maven-android-sdk-deployer && mvn install -P6.0 -Dandroid.sdk.path=$ANDROID_HOME && cd ..
script:
- ./gradlew check
- cat MIDIDriver/build/outputs/lint-results.xml
- cd ./MIDIDriver && mvn install -DskipTests=true -Dandroid.sdk.path=$ANDROID_HOME