aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci
diff options
context:
space:
mode:
authorMartin/Geno <geno+dev@fireorbit.de>2018-11-09 09:57:09 +0100
committerMartin/Geno <geno+dev@fireorbit.de>2018-11-09 09:57:16 +0100
commit3a714cf31e5037a9fea03e66c5a28546e4eaf55a (patch)
treef68f09c642539ac0c0b9837d55869f24de153a61 /.circleci
parent5eb53bcf1d456f9199397eaf00651c5a17edae45 (diff)
ci add mini tests
Diffstat (limited to '.circleci')
-rw-r--r--.circleci/config.yml26
1 files changed, 25 insertions, 1 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml
index 6b9f76d3e..0b2c076b8 100644
--- a/.circleci/config.yml
+++ b/.circleci/config.yml
@@ -1,15 +1,38 @@
version: 2
jobs:
+ test:
+ docker:
+ - image: registry.gitlab.com/fdroid/ci-images-client:latest
+ steps:
+ - checkout
+ - restore_cache:
+ key: gradle
+ - 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
+ - run: ./gradlew lint
+ - save_cache:
+ paths:
+ - .gradle/caches
+ - .gradle/wrapper
+ key: gradle
+ - store_artifacts:
+ path: build/outputs/apk/standard
+ destination: apk
build:
docker:
- image: registry.gitlab.com/fdroid/ci-images-client:latest
steps:
- checkout
- restore_cache:
- key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
+ key: gradle
- 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
- run: ./gradlew assembleStandard
+ - save_cache:
+ paths:
+ - .gradle/caches
+ - .gradle/wrapper
+ key: gradle
- store_artifacts:
path: build/outputs/apk/standard
destination: apk
@@ -19,3 +42,4 @@ workflows:
build_only:
jobs:
- build
+ - test