diff options
author | Christian Schneppe <kriztan@users.noreply.github.com> | 2018-11-10 21:28:48 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-10 21:28:48 +0100 |
commit | 028c56ce41131e863368fce1057904f0b82a38ae (patch) | |
tree | b7931c70fc19d68cac7bbd0f2217876f7ce4a94b /.circleci | |
parent | 885246d8045bbcec398ff684b83626857627a54b (diff) | |
parent | 9a4577340fbb9be0f3242bc704d598ef66a0f41e (diff) |
Merge pull request #264 from genofire/ci
Build with CIs
Diffstat (limited to '.circleci')
-rw-r--r-- | .circleci/config.yml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 000000000..49088ef81 --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,44 @@ +version: 2 +jobs: + test: + docker: + - image: registry.gitlab.com/fdroid/ci-images-client:latest + steps: + - checkout + - restore_cache: + key: gradle-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }} + - 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-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }} + - 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: 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 + - run: ./gradlew assembleStandard + - save_cache: + paths: + - ~/.android + key: android + - store_artifacts: + path: build/outputs/apk/standard + destination: apk + +workflows: + version: 2 + build_test: + jobs: + - build + - test |