Skip to content

Instantly share code, notes, and snippets.

@dazza5000
Last active June 23, 2018 15:02
Show Gist options
  • Save dazza5000/0a807de012c7281f14787cf30bf7be0e to your computer and use it in GitHub Desktop.
Save dazza5000/0a807de012c7281f14787cf30bf7be0e to your computer and use it in GitHub Desktop.

Revisions

  1. dazza5000 revised this gist Jun 23, 2018. 1 changed file with 29 additions and 29 deletions.
    58 changes: 29 additions & 29 deletions circle.yml
    Original file line number Diff line number Diff line change
    @@ -1,30 +1,30 @@
    #
    # Build configuration for Circle CI
    #

    general:
    artifacts:
    - /home/ubuntu/CriminalIntent/app/build/outputs/apk/

    machine:
    version: 2
    jobs:
    build:
    working_directory: ~/code
    docker:
    - image: circleci/android:api-27-alpha
    environment:
    ANDROID_HOME: /usr/local/android-sdk-linux
    GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'

    dependencies:
    pre:
    - echo y | android update sdk --no-ui --all --filter tools,platform-tools,android-23
    - echo y | android update sdk --no-ui --all --filter build-tools-23.0.3
    - echo y | android update sdk --no-ui --all --filter android-23
    - echo y | android update sdk --no-ui --all --filter tools
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository
    - echo y | android update sdk --no-ui --all --filter extra-android-support
    - echo y | android update sdk --no-ui --all --filter extra-google-google_play_services
    - echo y | android update sdk --no-ui --all --filter extra-google-m2repository
    override:
    - ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies

    test:
    override:
    - (./gradlew assemble):
    timeout: 360
    JVM_OPTS: -Xmx3200m
    steps:
    - checkout
    - restore_cache:
    key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
    - run:
    name: Download Dependencies
    command: |
    sudo chmod +x gradlew
    ./gradlew androidDependencies
    - save_cache:
    paths:
    - ~/.gradle
    key: jars-{{ checksum "build.gradle" }}-{{ checksum "app/build.gradle" }}
    - run:
    name: Build Debug
    command: ./gradlew assembleProdDebug
    - store_artifacts:
    path: app/build/outputs/apk/prod/debug/app-prod-debug.apk
    destination: app-prod-debug.apk
    - run:
    name: Uploading on Beta
    command: ./gradlew crashlyticsUploadDistributionProdDebug
  2. dazza5000 revised this gist May 1, 2016. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion circle.yml
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,6 @@ dependencies:
    - echo y | android update sdk --no-ui --all --filter build-tools-23.0.3
    - echo y | android update sdk --no-ui --all --filter android-23
    - echo y | android update sdk --no-ui --all --filter tools
    - echo y | android update sdk --no-ui --all --filter build-tools-23.0.3
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository
    - echo y | android update sdk --no-ui --all --filter extra-android-support
    - echo y | android update sdk --no-ui --all --filter extra-google-google_play_services
  3. dazza5000 revised this gist May 1, 2016. No changes.
  4. dazza5000 revised this gist May 1, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion circle.yml
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@

    general:
    artifacts:
    - /home/ubuntu/austin-feeds-me/app/build/outputs/apk/
    - /home/ubuntu/CriminalIntent/app/build/outputs/apk/

    machine:
    environment:
  5. dazza5000 created this gist Apr 29, 2016.
    31 changes: 31 additions & 0 deletions circle.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,31 @@
    #
    # Build configuration for Circle CI
    #

    general:
    artifacts:
    - /home/ubuntu/austin-feeds-me/app/build/outputs/apk/

    machine:
    environment:
    ANDROID_HOME: /usr/local/android-sdk-linux
    GRADLE_OPTS: '-Dorg.gradle.jvmargs="-Xmx2048m -XX:+HeapDumpOnOutOfMemoryError"'

    dependencies:
    pre:
    - echo y | android update sdk --no-ui --all --filter tools,platform-tools,android-23
    - echo y | android update sdk --no-ui --all --filter build-tools-23.0.3
    - echo y | android update sdk --no-ui --all --filter android-23
    - echo y | android update sdk --no-ui --all --filter tools
    - echo y | android update sdk --no-ui --all --filter build-tools-23.0.3
    - echo y | android update sdk --no-ui --all --filter extra-android-m2repository
    - echo y | android update sdk --no-ui --all --filter extra-android-support
    - echo y | android update sdk --no-ui --all --filter extra-google-google_play_services
    - echo y | android update sdk --no-ui --all --filter extra-google-m2repository
    override:
    - ANDROID_HOME=/usr/local/android-sdk-linux ./gradlew dependencies

    test:
    override:
    - (./gradlew assemble):
    timeout: 360