Fix circle-ci build, add bitrise

This commit is contained in:
Mikołaj Pich 2017-04-20 00:02:52 +02:00
parent 68a0b27512
commit cf60edcee7
3 changed files with 28 additions and 3 deletions

View File

@ -1,7 +1,8 @@
# Wulkanowy
[![build status](https://gitlab.com/leszcze/wulkanowy-android/badges/master/build.svg)](https://gitlab.com/leszcze/wulkanowy-android/commits/master)
[![Build Status](https://www.bitrise.io/app/daeff1893f3c8128.svg?token=Hjm1ACamk86JDeVVJHOeqQ&branch=master)](https://www.bitrise.io/app/daeff1893f3c8128)
[![CircleCI](https://circleci.com/gh/wulkanowy/wulkanowy.svg?style=svg)](https://circleci.com/gh/wulkanowy/wulkanowy)
[Pobierz ostatnią wersję dev](https://gitlab.com/leszcze/wulkanowy-android/builds/artifacts/master/download?job=build)
[Pobierz wersję rozwojową](https://www.bitrise.io/artifact/1488268/p/66e6516f947bd7bf854a4a2ecdd46130)
Wulkanowy to projekt aplikacji na androida ułatwiającej używanie dziennika VULCANa.

View File

@ -8,7 +8,7 @@ android {
minSdkVersion 14
targetSdkVersion 25
versionCode 1
versionName "1.0"
versionName "0.1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {

24
circle.yml Normal file
View File

@ -0,0 +1,24 @@
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-2.3-bin.zip"; unzip gradle-2.3-bin.zip
override:
- echo y | android update sdk --no-ui --all --filter tools,platform-tools,build-tools-25.0.2,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
test:
override:
- ./gradlew test
- ./gradlew check
- ./gradlew assembleDebug
- cp app/build/outputs/apk/app-debug.apk $CIRCLE_ARTIFACTS