-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.cirrus.yml
62 lines (62 loc) · 2.72 KB
/
.cirrus.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
check_android_task:
name: Run Android tests
env:
API_LEVEL: 28
TARGET: default
ARCH: x86
CC_TEST_REPORTER_ID: ENCRYPTED[cf0f99da73714e912b603be1c05a2e60bb7ae11e52ddab8be2f7b67291f1bff899b99a4dcc02c6bc5b7ff3035fc79da9]
container:
image: reactivecircus/android-emulator-$API_LEVEL:latest
kvm: true
cpu: 8
memory: 32G
environment:
FIREBASE_PROJECT: ENCRYPTED[bc6620afb409572960c61f926317a3b87fa7d409fff320107e8931264eb228ab8f1f7fe93992a0a1399ff34590c8f182]
FIREBASE_TOKEN: ENCRYPTED[2ca65f1d768a93e43027b6809f27c9b2a777b229de540efb6409ef9fc26cfc5467126970d23f1f82460b11c29b728e04]
FIREBASE_CONFIG: ENCRYPTED[a0d16f4fe9b01f4321fff5d923eac48a6a4f5aead5b618175964c65ee9f0e869254a61b0c0675cde35750d37c109df0a]
FIREBASE_DB_RULES : ENCRYPTED[6e05671a2de103c196cbd4037eb207a75d066d5cd031b4fc01998f348fe4917b31cc983e5efdc61816354917bd243fee]
create_device_script:
echo no | avdmanager create avd --force --name test --abi "$TARGET/$ARCH" --package "system-images;android-$API_LEVEL;$TARGET;$ARCH"
start_emulator_background_script:
$ANDROID_SDK_ROOT/emulator/emulator -avd test -no-window -gpu swiftshader_indirect -no-snapshot -no-audio -no-boot-anim -camera-back none
firebase_json_file:
path: firebase/firebase.json
variable_name: FIREBASE_CONFIG
firebase_db_rules_file:
path: firebase/database.rules.json
variable_name: FIREBASE_DB_RULES
firebase_project_file:
path: firebase/.firebaserc
variable_name: FIREBASE_PROJECT
setup_firebase_script: |
cd firebase
curl -sL https://firebase.tools/bin/linux/latest -o firebase-tools
chmod u+x firebase-tools
./firebase-tools emulators:start --only auth,database &
build_script: |
chmod +x gradlew
./gradlew assembleDebugAndroidTest
wait_for_emulator_script: |
adb wait-for-device
adb shell input keyevent 82
disable_animations_script: |
adb shell settings put global window_animation_scale 0.0
adb shell settings put global transition_animation_scale 0.0
adb shell settings put global animator_duration_scale 0.0
prepare_codeclimate_script: |
curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter
./cc-test-reporter before-build
check_script:
./gradlew check connectedCheck
report_codeclimate_script: |
export JACOCO_SOURCE_PATH=app/src/main/java/
./cc-test-reporter format-coverage ./app/build/reports/jacoco/jacocoTestReport/jacocoTestReport.xml --input-type jacoco
./cc-test-reporter upload-coverage
lint_script:
./gradlew lintDebug
always:
android-lint_artifacts:
path: ./app/build/reports/lint-results-debug.xml
type: text/xml
format: android-lint