-
Notifications
You must be signed in to change notification settings - Fork 5
/
circle.yml
55 lines (44 loc) · 1.44 KB
/
circle.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
#Install android build tools, platforms
#Supported versions here https://circleci.com/docs/android
machine:
ruby:
version: 2.3.0
dependencies:
pre:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-23.0.3,android-23,extra-android-m2repository,extra-android-support,extra-google-google_play_services,extra-google-m2repository
- gem install fastlane --verbose
override:
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
test:
pre:
# start the emulator
- emulator -avd circleci-android22 -no-audio -no-window:
background: true
parallel: true
# wait for it to have booted
- circle-android wait-for-boot
override:
#run unit tests
- ./gradlew test
#run code coverage
- ./gradlew jacocoTestReport
# run tests against the emulator.
# - ./gradlew connectedCheck
# copy the build outputs to artifacts
- cp -r ./app/build/outputs $CIRCLE_ARTIFACTS/
# copy the test results to the test results directory.
- cp -r ./app/build/reports/* $CIRCLE_TEST_REPORTS/
- sudo apt-get install dc
- chmod +x ./CheckCoverageGoal.sh
- ./CheckCoverageGoal.sh
post:
- bash <(curl -s https://codecov.io/bash)
deployment:
production: # just a label; label names are completely up to you
branch: production
commands:
- fastlane deploy
beta:
branch: beta
commands:
- fastlane beta