forked from aerogear-attic/aerogear-android-security
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
69 lines (54 loc) · 1.82 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
language: android
notifications:
irc: "irc.freenode.org#aerogear"
jdk:
- oraclejdk8
- oraclejdk7
- openjdk6
android:
components:
- platform-tools
- tools
- build-tools-21.1.1
- android-21
- android-19
- sys-img-armeabi-v7a-android-19
env:
matrix:
- ANDROID_SDK=android-21 ANDROID_EMULATOR=android-19 ANDROID_ABI=armeabi-v7a
before_install:
# Kill unnecessary services
- sudo service mysql stop
- sudo service postgresql stop
#################################################
########## maven-android-sdk-deployer ###########
#################################################
# Checkout maven-android-sdk-deployer
- git clone git://github.com/mosabua/maven-android-sdk-deployer.git
# Install android maven repository
- cd $PWD/maven-android-sdk-deployer/platforms/$ANDROID_SDK
- mvn install -N --quiet
- cd -
#################################################
############ Snapshot dependencies ##############
#################################################
# AeroGear Android Core
- git clone git://github.com/aerogear/aerogear-android-core.git
- cd $PWD/aerogear-android-core
- mvn install -N --quiet
- cd -
before_script:
# Create emulator
- echo no | android create avd --force -n test -t $ANDROID_EMULATOR --abi $ANDROID_ABI
script:
- mvn install -Drelease
- cd aerogear-android-security-test
- mvn package -DskipTests=true;
- emulator -avd test -no-skin -no-audio -no-window&
- wget https://raw.githubusercontent.com/travis-ci/travis-cookbooks/master/ci_environment/android-sdk/files/default/android-wait-for-emulator
- chmod a+x ./android-wait-for-emulator
- ./android-wait-for-emulator
- adb shell input keyevent 82
- adb shell df
- adb install target/aerogear-android-security-test-2.1.0-SNAPSHOT.apk
- mvn android:instrument