forked from OceanLabs/Android-Print-SDK
-
Notifications
You must be signed in to change notification settings - Fork 0
/
circle.yml
23 lines (23 loc) · 869 Bytes
/
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
machine:
java:
version: openjdk8
pre:
# This line updates / installs missing SDK components that don't seem to be
# up-to-date in the container used to build and test.
- echo "y" | android update sdk -u -a -t "build-tools-25.0.2","extra-android-m2repository"
test:
override:
# Start the emulator
- emulator -avd circleci-android22 -no-audio -no-window:
background: true
parallel: true
# The emulator takes about 4 1/2 minutes to boot, so wait until it's ready before
# starting the tests.
- circle-android wait-for-boot
# Run the tests on the emulator, and create a coverage report
- ./gradlew createDebugCoverageReport
# Copy the coverage reports
- cp -r KitePrintSDK/build/reports $CIRCLE_ARTIFACTS
post:
# Upload coverage reports to Codecov
- bash <(curl -s https://codecov.io/bash)