aboutsummaryrefslogtreecommitdiffstats
path: root/.circleci/config.yml
blob: 6b9f76d3ed6cfa86da647fc6308b5070eb480427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
version: 2
jobs:
  build:
    docker:
      - image: registry.gitlab.com/fdroid/ci-images-client:latest
    steps:
      - checkout
      - restore_cache:
          key: jars-{{ checksum "build.gradle" }}-{{ checksum  "app/build.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
      - store_artifacts:
          path: build/outputs/apk/standard
          destination: apk

workflows:
  version: 2
  build_only:
    jobs:
    - build