Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.66 KB | None | 0 0
  1. # Build configuration file for Circle CI
  2. version: 2
  3. jobs:
  4.   build-cache:
  5.     working_directory: ~/code
  6.     docker:
  7.       - image: circleci/android:api-28-alpha
  8.     resource_class: medium+
  9.     steps:
  10.      - checkout
  11.       - run:
  12.          # needed because of license agreement
  13.           name: Set $PATH
  14.           command: echo export PATH=$ANDROID_HOME/tools/bin:$PATH
  15.       - run:
  16.           name: Download Dependencies
  17.           command: ./gradlew androidDependencies
  18.       - save_cache:
  19.           paths:
  20.            - ~/.gradle
  21.           key: jars-{{ checksum "build.gradle" }}-{{ checksum "erste-android/build.gradle" }}
  22.  
  23.   test:
  24.     working_directory: ~/code
  25.     docker:
  26.       - image: circleci/android:api-28-alpha
  27.     resource_class: medium+
  28.     steps:
  29.      - checkout
  30.       - restore_cache:
  31.           key: jars-{{ checksum "build.gradle" }}-{{ checksum "erste-android/build.gradle" }}
  32.       - run:
  33.           name: Run Android Lint
  34.           command: ./gradlew lintUatDebug -PpreDexEnable=false -PdisablePreDex --console=plain
  35.       - run:
  36.           name: Run Kotlin Detekt
  37.           command: ./gradlew detekt -PpreDexEnable=false -PdisablePreDex --console=plain
  38.       - run:
  39.           name: Run Unit Tests
  40.           command: ./gradlew testUatDebug -PpreDexEnable=false -PdisablePreDex --console=plain
  41.       - run:
  42.           name: Run a build
  43.           command: ./gradlew clean assembleUatDebug -PpreDexEnable=false -PdisablePreDex --console=plain
  44.       - store_artifacts:
  45.           path: erste-android/build/reports
  46.           destination: reports
  47.       - store_artifacts:
  48.           path: erste-android/build/outputs
  49.           destination: outputs
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement