forked from ZobayerAbedin/Cardiac-Monitor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
33 lines (28 loc) · 1016 Bytes
/
.travis.yml
File metadata and controls
33 lines (28 loc) · 1016 Bytes
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
# TRAVIS-CI CODE FOR BUILDING AND EXECUTING UNIT TEST
os: linux
language: android
jdk: openjdk17 # change it
android:
components:
- tools
- platform-tools
- tools
- extra-android-m2repository
env:
global:
- TARGET_VERSION=33 #change it
- ANDROID_BUILD_TOOLS_VERSION=33.0.1 # > target_version
- ANDROID_HOME=~/android-sdk
before_install:
- touch $HOME/.android/repositories.cfg
- wget "https://dl.google.com/android/repository/commandlinetools-linux-7302050_latest.zip" -O commandlinetools.zip
- unzip commandlinetools.zip -d $ANDROID_HOME/
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${TARGET_VERSION}" --sdk_root=$ANDROID_HOME
- yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS_VERSION}" --sdk_root=$ANDROID_HOME
before_script:
- chmod +x gradlew #for making file executable
script:
- echo "Building project...."
- echo "Running all ui test..."
- echo "Running all unit test..."
- echo "All test passed..."