-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
55 lines (51 loc) · 2.24 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
language: android
android:
components:
- platform-tools
- tools
- build-tools-29.0.3
- android-29
- extra-google-google_play_services
- extra-google-m2repository
- extra-android-m2repository
- addon-google_apis-google-19
jobs:
include:
- stage: "Code Analysis"
name: "Sonar Cloud Code Analysis"
jdk: openjdk11
addons:
sonarcloud:
organization: "chathurabuddi"
token:
secure: "Rnl/O0n7jazPzogGdKb6ycqlntzIFCxV1HvS7AgzbGTS8Lnc3sCbjGMS7DkImwJH5g+nRGRIk5vVjYb84SJtsb7gm31UUVbOO5qOAilwLYgO8OemZ1CHVYRUCxPqDIwAca8SCczhj26U0FpW2jYq4lJB0YelefYzDGQimol96zYTk7d3Ta0oVQW2YdE7QiwznQHS93jcsqk+h4+y/lLjMOyzAv0F9EJJ/YypudRmMBttHLQXPjeRL5gxD1lgytcP2cLgwPKp886dl3eS2YiihpHeXW1tMN52fTNoBJv+Rqex7pMFHWorDJsBem0U1QF/vhUIZevuZkj7CZ9WyM+4ZG250TVcdoTvokuxvE2iHx9nwCM0VssJY4NZtyVmpw1MmBbD7PRSf16vJfdGpzQaDdt9G8aca6d8lBhhmkm6zmMc4m91aIrHB2xMr0LQy2MH6BlmKrLwc4+Xa565UG6OzOyxeklfXFsuWsXz6CblVnnkhPcEYj0MEn7GVaSKcvt0C6DM6o2dISkAFLwq68OMgdaJtYRRry/kG/v5RDufzvv9F7xvuwsN538vICrGu0YWUCyUcbbUALAIm++YCQ3PT91ijxASqLxWSoBhEP2JhCJnPi7j+8araZ6+CPY7xE+2wcVVXFcVv3lwVFIvpHSd9t+SMs3rJx1ZlRiXlW1nDH0="
script: ./gradlew sonarqube
if: (type = push AND branch IN (master, develop)) OR type = pull_request
- stage: "Build"
name: "Build the Project"
jdk: openjdk8
before_install:
- yes | sdkmanager "platforms;android-29"
script: ./gradlew assembleDebug
if: (type = push AND branch IN (master, develop)) OR type = pull_request
- stage: "Release"
name: "Release the artifacts to GitHUb Releases"
jdk: openjdk8
before_install:
- yes | sdkmanager "platforms;android-29"
script: ./gradlew assembleDebug
if: type = push AND tag IS present
deploy:
provider: releases
api-key: $GITHUB_API_KEY
file: $TRAVIS_BUILD_DIR/app/build/outputs/apk/debug/app-debug.apk
skip_cleanup: true
name: $TRAVIS_TAG
body: Automated release build of $TRAVIS_BRANCH ($TRAVIS_COMMIT) by Travis CI on $(date +'%F %T %Z').
overwrite: true
target_commitish: $TRAVIS_COMMIT
on:
branch: master
tags: true
after_deploy:
- rm -rf $TRAVIS_BUILD_DIR/app/build/outputs