diff options
author | ByteHamster <info@bytehamster.com> | 2019-09-24 10:50:51 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-09-24 10:50:51 +0200 |
commit | c16fe7a7c9dc9c5682c2b9a36b52de59d7578ab1 (patch) | |
tree | 6362fa23d8f9769b5707064d8e8120d03ed19dd6 /.circleci | |
parent | 2dce723a8d4e451d0f74f3feb249621b5468717a (diff) | |
download | AntennaPod-c16fe7a7c9dc9c5682c2b9a36b52de59d7578ab1.zip |
Using workflows to build on circleci
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml index 258340afc..fccd6d8cb 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ version: 2 jobs: - build: + test: docker: - image: circleci/android:api-28 @@ -21,11 +21,24 @@ jobs: - v1-android- - run: - # To build release, we need to create a temporary keystore that can be used to sign the app - 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" - ./gradlew assembleRelease :core:testPlayReleaseUnitTest :app:assemblePlayDebugAndroidTest -PdisablePreDex - no_output_timeout: 1800 + 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" + + - run: + name: Build debug + command: ./gradlew assembleDebug -PdisablePreDex + + - run: + name: Build release + command: ./gradlew assembleRelease -PdisablePreDex + + - run: + name: Execute unit tests + command: ./gradlew :core:testPlayReleaseUnitTest -PdisablePreDex + + - run: + name: Build integration tests + command: ./gradlew :app:assemblePlayDebugAndroidTest -PdisablePreDex - store_artifacts: path: app/build/outputs/apk @@ -37,3 +50,10 @@ jobs: - ~/.gradle - ~/android key: v1-android-{{ checksum "build.gradle" }} + +workflows: + version: 2 + + test: + jobs: + - test |