aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgenofire <geno+dev@fireorbit.de>2019-06-08 22:30:39 +0200
committerChristian Schneppe <kriztan@users.noreply.github.com>2019-06-08 22:30:39 +0200
commitb5735e12cfb9d4da69eb8151db1a6bcc3e1dbe43 (patch)
tree0b57cde1e3835f91bb6b76c4eed26651f7e4f3f5
parente3b3c6dccc2ae0ab4f5c5c81fe8a1182feba2d56 (diff)
split circlci build to master/publish/nightly and build/other branches (#348)
-rw-r--r--.circleci/config.yml28
1 files changed, 25 insertions, 3 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 9c9bc51a3..8f6443737 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -19,6 +19,30 @@ jobs:
path: build/outputs/apk/standard
destination: apk
build:
+ branches:
+ ignore:
+ - master
+ docker:
+ - image: registry.gitlab.com/fdroid/ci-images-client:latest
+ steps:
+ - checkout
+ - restore_cache:
+ key: android
+ - run: export GRADLE_USER_HOME=$PWD/.gradle
+ - run: echo y | sdkmanager "platforms;android-$(sed -n 's,.*compileSdkVersion\s*\([0-9][0-9]*\).*,\1,p' build.gradle)" > /dev/null
+ # build
+ - run: ./gradlew assembleStandard
+ - save_cache:
+ paths:
+ - ~/.android
+ key: android
+ - store_artifacts:
+ path: build/outputs/apk/standard
+
+ publish:
+ branches:
+ only:
+ - master
docker:
- image: registry.gitlab.com/fdroid/ci-images-client:latest
steps:
@@ -41,12 +65,10 @@ jobs:
paths:
- ~/.android
key: android
- - store_artifacts:
- path: build/outputs/apk/standard
- destination: apk
workflows:
version: 2
build_test:
jobs:
- build
+ - publish