Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Pipeline com CircleCI & Firebase Test Lab

Pipeline com CircleCI & Firebase Test Lab

Apresentado no Android Meetup do GDG-SP

Rafael Toledo

February 06, 2018
Tweet

More Decks by Rafael Toledo

Other Decks in Programming

Transcript

  1. # .circleci/config.yml version: 2 jobs: build: working_directory: ~/my-project docker: -

    image: circleci/android:api-27-alpha environment: JVM_OPTS: -Xmx3072m CIRCLE_JDK_VERSION: oraclejdk8 ...
  2. # app/build.gradle android { ... signingConfigs { storeFile file(System.env.RELEASE_STORE_FILE) storePassword

    System.env.RELEASE_STORE_PASSWORD keyAlias System.env.RELEASE_KEY_ALIAS keyPassword System.env.RELEASE_KEY_PASSWORD } }
  3. ... - run: name: Run Tests on Firebase Test Lab

    command: | echo "${FIREBASE_TOKEN}" >> "secret.json" curl -0 https://dl.google.com/dl/cloudsdk/release/google-cloud-sdk.zip unzip -qq google-cloud-sdk.zip ./google-cloud-sdk/bin/gcloud config set project my-project ./google-cloud-sdk/bin/gcloud auth activate-service-account --key-file secret.json