forked from CellularPrivacy/Android-IMSI-Catcher-Detector
/
.travis.yml
75 lines (64 loc) · 2.44 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
70
71
72
73
74
75
# Test changes of this .travis.yml config before submitting them:
# http://lint.travis-ci.org/SecUpwN/Android-IMSI-Catcher-Detector
# ---------------------------------------------------------------
# Encrypt Travis CI settings using this tool by Konstantin Haase:
# https://rkh.github.io/travis-encrypt/public/index.html
# ---------------------------------------------------------------
# Travis CI Settings
#-------------------
language: android
# Turning off caching to avoid caching Issues
cache: false
# Using the new Container-Based Infrastructure
sudo: false
env:
global:
# Initiating clean Gradle output
- TERM=dumb
# Amount of memory granted to Gradle JVM
- GRADLE_OPTS="-Xmx512m -XX:MaxPermSize=512m"
# General Android settings used in builds
- ANDROID_TARGET=android-17
- ANDROID_ABI=armeabi-v7a
# Encrypted Tokens
#-----------------
# Encrypted Coverity Scan Token
- secure: "jRKgZfeAxDhqDIrySBESiij3Ot9cmVQ4CMB+IVpmf7Xjfek6By1ba7Y1lgMdLRPgvLkj3k5mMx1BMx2yeSCBp/+TZJ6Ezj3EVJ6HS2ctkAH4KzsiqlSCKiRgfOqKgzfnftCkNzXCEE3XLVLcv4iT5Ru/EBG85kEDViGrDBP+PxA="
# Encrypted internal chat Token
notifications:
hipchat:
- secure: "I2XmQkFCyKZHW2NeClYyl3FND80YkqLtYo+Rn3ftS4xjEg6VfGgDv6AlvQ+b+oZg7RZI6nKia9OLZxAxVBOHw6UcJJnurJx4hfAIBZAihIiNpZPj1c9wGgv4D+M6zi3rgbJRZ2Tz6IKJvHC+CD3LApeJR9kH15lDWbD7YZ0UI7E="
before_install:
# Making sure gradlew has executable permissions
- chmod +x gradlew
android:
components:
# We are using the latest revision of Android SDK Tools
- platform-tools
- tools
# The BuildTools version we are using for our project
- build-tools-21.1.1
# System Image we use to run emulator(s) during tests
- sys-img-armeabi-v7a-android-17
licenses:
- 'android-sdk-license-.+'
# Emulator Management: Create, Start and Wait
before_script:
# Inspecting running services
- ps auxww
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
- emulator -avd test -no-skin -no-audio -no-window &
- android-wait-for-emulator
- adb shell input keyevent 82 &
script: ./gradlew connectedAndroidTest --info
# Coverity Scan Settings
#-----------------------
addons:
coverity_scan:
project:
name: "SecUpwN/Android-IMSI-Catcher-Detector"
notification_email: annoyed@coverity.notifications
# Scan results: http://scan.coverity.com/projects/3346
build_command_prepend: "./gradlew clean"
build_command: "./gradlew build"
branch_pattern: master