Merge pull request #3494 from ByteHamster/free-build-circleci
Executing free build on CircleCI
This commit is contained in:
commit
eb70b4e0fa
@ -1,33 +1,12 @@
|
|||||||
version: 2
|
version: 2.1
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test-debug:
|
build:
|
||||||
docker:
|
parameters:
|
||||||
- image: circleci/android:api-28
|
build-steps:
|
||||||
working_directory: ~/AntennaPod
|
description: "Steps that will be executed for this build"
|
||||||
environment:
|
type: steps
|
||||||
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError"'
|
default: []
|
||||||
_JAVA_OPTIONS: "-Xms256m -Xmx1280m"
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-android-{{ checksum "build.gradle" }}
|
|
||||||
- v1-android-
|
|
||||||
- run:
|
|
||||||
name: Build debug
|
|
||||||
command: ./gradlew assembleDebug -PdisablePreDex
|
|
||||||
- run:
|
|
||||||
name: Execute debug unit tests
|
|
||||||
command: ./gradlew :core:testPlayDebugUnitTest -PdisablePreDex
|
|
||||||
- save_cache:
|
|
||||||
paths:
|
|
||||||
- ~/.android
|
|
||||||
- ~/.gradle
|
|
||||||
- ~/android
|
|
||||||
key: v1-android-{{ checksum "build.gradle" }}
|
|
||||||
|
|
||||||
test-release:
|
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/android:api-28
|
- image: circleci/android:api-28
|
||||||
working_directory: ~/AntennaPod
|
working_directory: ~/AntennaPod
|
||||||
@ -43,61 +22,53 @@ jobs:
|
|||||||
- run:
|
- run:
|
||||||
name: Create temporary release keystore
|
name: Create temporary release keystore
|
||||||
command: keytool -noprompt -genkey -v -keystore "app/keystore" -alias alias -storepass password -keypass password -keyalg RSA -validity 10 -dname "CN=antennapod.org, OU=dummy, O=dummy, L=dummy, S=dummy, C=US"
|
command: keytool -noprompt -genkey -v -keystore "app/keystore" -alias alias -storepass password -keypass password -keyalg RSA -validity 10 -dname "CN=antennapod.org, OU=dummy, O=dummy, L=dummy, S=dummy, C=US"
|
||||||
|
- steps: << parameters.build-steps >>
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- ~/.android
|
||||||
|
- ~/.gradle
|
||||||
|
- ~/android
|
||||||
|
key: v1-android-{{ checksum "build.gradle" }}
|
||||||
|
|
||||||
|
workflows:
|
||||||
|
unit-tests:
|
||||||
|
jobs:
|
||||||
|
- build:
|
||||||
|
name: Build debug
|
||||||
|
build-steps:
|
||||||
|
- run:
|
||||||
|
name: Build debug
|
||||||
|
command: ./gradlew assembleDebug -PdisablePreDex
|
||||||
|
- run:
|
||||||
|
name: Execute debug unit tests
|
||||||
|
command: ./gradlew :core:testPlayDebugUnitTest -PdisablePreDex
|
||||||
|
- build:
|
||||||
|
name: Build release
|
||||||
|
build-steps:
|
||||||
- run:
|
- run:
|
||||||
name: Build release
|
name: Build release
|
||||||
command: ./gradlew assembleRelease -PdisablePreDex
|
command: ./gradlew assembleRelease -PdisablePreDex
|
||||||
- run:
|
- run:
|
||||||
name: Execute release unit tests
|
name: Execute release unit tests
|
||||||
command: ./gradlew :core:testPlayReleaseUnitTest -PdisablePreDex
|
command: ./gradlew :core:testPlayReleaseUnitTest -PdisablePreDex
|
||||||
- save_cache:
|
- build:
|
||||||
paths:
|
name: Build integration tests
|
||||||
- ~/.android
|
build-steps:
|
||||||
- ~/.gradle
|
|
||||||
- ~/android
|
|
||||||
key: v1-android-{{ checksum "build.gradle" }}
|
|
||||||
|
|
||||||
build-androidtest:
|
|
||||||
docker:
|
|
||||||
- image: circleci/android:api-28
|
|
||||||
working_directory: ~/AntennaPod
|
|
||||||
environment:
|
|
||||||
GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx1536m -XX:MaxPermSize=512m -XX:+HeapDumpOnOutOfMemoryError"'
|
|
||||||
_JAVA_OPTIONS: "-Xms256m -Xmx1280m"
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- restore_cache:
|
|
||||||
keys:
|
|
||||||
- v1-android-{{ checksum "build.gradle" }}
|
|
||||||
- v1-android-
|
|
||||||
- run:
|
- run:
|
||||||
name: Build integration tests
|
name: Build integration tests
|
||||||
command: ./gradlew :app:assemblePlayDebugAndroidTest -PdisablePreDex
|
command: ./gradlew :app:assemblePlayDebugAndroidTest -PdisablePreDex
|
||||||
- save_cache:
|
- build:
|
||||||
paths:
|
name: Build free
|
||||||
- ~/.android
|
build-steps:
|
||||||
- ~/.gradle
|
|
||||||
- ~/android
|
|
||||||
key: v1-android-{{ checksum "build.gradle" }}
|
|
||||||
|
|
||||||
checkstyle:
|
|
||||||
docker:
|
|
||||||
- image: circleci/android:api-28
|
|
||||||
working_directory: ~/AntennaPod
|
|
||||||
steps:
|
|
||||||
- checkout
|
|
||||||
- run:
|
- run:
|
||||||
name: Checkstyle
|
name: Build free (for F-Droid)
|
||||||
command: ./gradlew checkstyle
|
command: ./gradlew assembleFreeRelease -PdisablePreDex -PfreeBuild
|
||||||
|
|
||||||
workflows:
|
|
||||||
version: 2
|
|
||||||
|
|
||||||
unit-tests:
|
|
||||||
jobs:
|
|
||||||
- test-debug
|
|
||||||
- test-release
|
|
||||||
- build-androidtest
|
|
||||||
|
|
||||||
static-analysis:
|
static-analysis:
|
||||||
jobs:
|
jobs:
|
||||||
- checkstyle
|
- build:
|
||||||
|
name: Checkstyle
|
||||||
|
build-steps:
|
||||||
|
- run:
|
||||||
|
name: Checkstyle
|
||||||
|
command: ./gradlew checkstyle
|
||||||
|
@ -135,6 +135,7 @@ dependencies {
|
|||||||
implementation "androidx.preference:preference:1.1.0"
|
implementation "androidx.preference:preference:1.1.0"
|
||||||
implementation "androidx.gridlayout:gridlayout:1.0.0"
|
implementation "androidx.gridlayout:gridlayout:1.0.0"
|
||||||
implementation "androidx.recyclerview:recyclerview:1.0.0"
|
implementation "androidx.recyclerview:recyclerview:1.0.0"
|
||||||
|
implementation "androidx.media:media:1.1.0"
|
||||||
implementation "com.google.android.material:material:1.0.0"
|
implementation "com.google.android.material:material:1.0.0"
|
||||||
annotationProcessor "androidx.annotation:annotation:1.1.0"
|
annotationProcessor "androidx.annotation:annotation:1.1.0"
|
||||||
compileOnly "com.google.android.wearable:wearable:$wearableSupportVersion"
|
compileOnly "com.google.android.wearable:wearable:$wearableSupportVersion"
|
||||||
|
@ -60,7 +60,7 @@ dependencies {
|
|||||||
implementation "androidx.preference:preference:1.1.0"
|
implementation "androidx.preference:preference:1.1.0"
|
||||||
annotationProcessor "androidx.annotation:annotation:1.1.0"
|
annotationProcessor "androidx.annotation:annotation:1.1.0"
|
||||||
implementation "android.arch.work:work-runtime:$workManagerVersion"
|
implementation "android.arch.work:work-runtime:$workManagerVersion"
|
||||||
|
implementation "androidx.media:media:1.1.0"
|
||||||
implementation "org.apache.commons:commons-lang3:$commonslangVersion"
|
implementation "org.apache.commons:commons-lang3:$commonslangVersion"
|
||||||
implementation "org.apache.commons:commons-text:$commonstextVersion"
|
implementation "org.apache.commons:commons-text:$commonstextVersion"
|
||||||
implementation "commons-io:commons-io:$commonsioVersion"
|
implementation "commons-io:commons-io:$commonsioVersion"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user