This repository has been archived on 2025-01-10. You can view files and clone it, but cannot push or open issues or pull requests.
PiratX-Archive/.circleci/config.yml

44 lines
1.3 KiB
YAML
Raw Normal View History

2018-11-08 22:53:06 +01:00
version: 2
jobs:
2018-11-09 09:57:09 +01:00
test:
docker:
- image: registry.gitlab.com/fdroid/ci-images-client:latest
steps:
- checkout
- restore_cache:
key: gradle-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }}
2018-11-09 09:57:09 +01:00
- 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
2018-11-10 22:45:38 +01:00
- run: ./gradlew lintStandardDebug
2018-11-09 09:57:09 +01:00
- save_cache:
paths:
- .gradle/caches
- .gradle/wrapper
key: gradle-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }}
2018-11-09 09:57:09 +01:00
- store_artifacts:
path: build/outputs/apk/standard
destination: apk
2018-11-08 22:53:06 +01:00
build:
docker:
- image: registry.gitlab.com/fdroid/ci-images-client:latest
steps:
- checkout
- restore_cache:
key: android
2018-11-08 22:53:06 +01:00
- 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
2018-11-09 09:57:09 +01:00
- save_cache:
paths:
- ~/.android
key: android
2018-11-08 22:53:06 +01:00
- store_artifacts:
path: build/outputs/apk/standard
destination: apk
workflows:
version: 2
build_test:
2018-11-08 22:53:06 +01:00
jobs:
- build