-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
42 lines (35 loc) · 1.32 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
# Reference : https://docs.travis-ci.com/user/languages/android/
language: android
# Only trusty distributions are supported for Android.
dist: trusty
android:
components:
# Uncomment the lines below if you want to
# use the latest revision of Android SDK Tools
- tools
- platform-tools
# The BuildTools version used by your project
- build-tools-30.0.2
# The SDK version used to compile your project
- android-30
# Additional components
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- extra-android-support
licenses:
# Accept all Android licenses.
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
jobs:
include:
- script:
- touch emptyFileForRelease
- ./gradlew clean assembleDebug # testProductionAPIDebugUnitTest
- ./gradlew build # testProductionAPIDebugUnitTest
# - if [[ "$TRAVIS_PULL_REQUEST" == "false" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_REPO_SLUG" == "heig-PRO-b04/android-frontend" ]];
# then bash ./.travis/deploy.sh;
# cd app/build/outputs/apk/productionAPI/debug/;
# curl -F [email protected] https://api.telegram.org/bot${TL_TOKEN}/sendDocument?chat_id=@rockindev;
# fi