-
Notifications
You must be signed in to change notification settings - Fork 8
/
.travis.yml
46 lines (40 loc) · 1.09 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
language: android
jdk: oraclejdk8
sudo: required
android:
components:
- tools
- extra-android-support
- extra-google-google_play_services
- extra-android-m2repository
- extra-google-m2repository
- build-tools-29.0.3
- android-29
before_install:
- yes | sdkmanager "platforms;android-29"
jobs:
include:
- stage: lint
name: "Lint Check"
script:
./gradlew -Pci --console=plain :app:lintDebug -PbuildDir=lint
# Make Project
- stage: build
name : "Make Project"
script:
./gradlew assembleDebug
artifacts:
paths:
- app/build/outputs/
- req.json
- stage: test
name: "Run All Tests"
script:
./gradlew -Pci --console=plain :app:testDebug
# Deployment to appetize.io, go through readme for more info
- stage: deploy
name: "Deployment"
dependencies:
- assembleDebug
script:
- 'curl -s -X POST -H "Content-Type: application/json" -d @req.json https://[email protected]/v1/apps/$APPETIZE_KEY > response.json'