wulkanowy-mod/circle.yml
Mikołaj Pich 4b425f9b39 Build coverage report (#3)
Add first unit test & code coverage config
2017-07-20 17:37:55 +02:00

36 lines
1.4 KiB
YAML

machine:
environment:
ANDROID_HOME: /usr/local/android-sdk-linux
ANDROID_NDK: $HOME/android-ndk-r11c
ANDROID_NDK_HOME: $ANDROID_NDK
PATH: $PATH:$ANDROID_NDK
dependencies:
pre:
- wget "https://downloads.gradle.org/distributions/gradle-3.3-bin.zip"; unzip gradle-3.3-bin.zip
override:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-25.0.3,android-25,extra-google-m2repository,extra-google-google_play_services,extra-android-m2repository
# Constraint Layout / [Solver for ConstraintLayout 1.0.0-alpha8, ConstraintLayout for Android 1.0.0-alpha8]
- mkdir -p $ANDROID_HOME/licenses/
- echo "8933bad161af4178b1185d1a37fbf41ea5269c55" > $ANDROID_HOME/licenses/android-sdk-license
- echo "84831b9409646a918e30573bab4c9c91346d8abd" > $ANDROID_HOME/licenses/android-sdk-preview-licens
- ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies
compile:
pre:
- ./gradlew --version
override:
- ./gradlew assembleDebug
post:
- mv app/build/outputs/apk/app-debug.apk $CIRCLE_ARTIFACTS
test:
override:
- ./gradlew test
- ./gradlew check
- ./gradlew codacyUpload
post:
- mv app/build/reports/tests/ $CIRCLE_ARTIFACTS/tests
- mv app/build/reports/lint-results.html $CIRCLE_ARTIFACTS
- mv app/build/reports/jacoco/jacocoTestDebugUnitTestReport/ $CIRCLE_ARTIFACTS/coverage