forked from CellularPrivacy/Android-IMSI-Catcher-Detector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
74 lines (63 loc) · 2.68 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
# Test all changes of this .travis.yml config file before submitting them:
# https://yaml.travis-ci.org/CellularPrivacy/Android-IMSI-Catcher-Detector
# ------------------------------------------------------------------------
# Encrypt settings: https://rkh.github.io/travis-encrypt/public/index.html
# ------------------------------------------------------------------------
language: android
jdk: oraclejdk8
sudo: false
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
env:
global:
- GRADLE_OPTS="-Xmx2048m -Xms512m"
# Encrypted Coverity Scan Token
- secure: "jRKgZfeAxDhqDIrySBESiij3Ot9cmVQ4CMB+IVpmf7Xjfek6By1ba7Y1lgMdLRPgvLkj3k5mMx1BMx2yeSCBp/+TZJ6Ezj3EVJ6HS2ctkAH4KzsiqlSCKiRgfOqKgzfnftCkNzXCEE3XLVLcv4iT5Ru/EBG85kEDViGrDBP+PxA="
android:
components:
- tools
- platform-tools
- build-tools-25.0.2
- android-25
- extra-android-m2repository
before_install:
- 'openssl aes-256-cbc -K $encrypted_dc771c3300d2_key -iv $encrypted_dc771c3300d2_iv -in keystore.jks.enc -out keystore.jks -d || true'
install: ./gradlew clean
script: ./gradlew build check
before_deploy:
- cd AIMSICD/build/outputs/apk; ls -la; md5sum *-normal-release.apk > md5sum.txt; sha1sum *-normal-release.apk > sha1sum.txt; cd -
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: hWL8k4eTm6RBA6JtY+zL/bFFm+f2eM466kKlHBrywukSXAThgX8VzHVu9I8u9bL1yP2j8R9XHmG+C49Fy8NZ85Hmj5ECFg3dGRhfxAzr3o3deP3Kaeo+LozGhOy/z2PvOPyHS7XqOK8kk8gmoMJ9jvhz+wFAbW9GxhKLYBMn81E=
file:
- AIMSICD/build/outputs/apk/AIMSICD-normal-release.apk
- AIMSICD/build/outputs/apk/md5sum.txt
- AIMSICD/build/outputs/apk/sha1sum.txt
on:
repo: CellularPrivacy/Android-IMSI-Catcher-Detector
tags: true
addons:
coverity_scan: #Scan results: http://scan.coverity.com/projects/3346
project:
name: "CellularPrivacy/Android-IMSI-Catcher-Detector"
notification_email: [email protected]
build_command_prepend: "./gradlew clean"
build_command: "./gradlew build"
branch_pattern: master
notifications:
hipchat:
- secure: "I2XmQkFCyKZHW2NeClYyl3FND80YkqLtYo+Rn3ftS4xjEg6VfGgDv6AlvQ+b+oZg7RZI6nKia9OLZxAxVBOHw6UcJJnurJx4hfAIBZAihIiNpZPj1c9wGgv4D+M6zi3rgbJRZ2Tz6IKJvHC+CD3LApeJR9kH15lDWbD7YZ0UI7E="
webhooks:
urls:
- https://webhooks.gitter.im/e/4c8e31d5ac5b12001ca4
on_success: change # options: [always|never|change] default: always
on_failure: always # options: [always|never|change] default: always
on_start: never # options: [always|never|change] default: always