Skip to content

Instantly share code, notes, and snippets.

@Zfinix
Last active December 1, 2020 22:45
Show Gist options
  • Select an option

  • Save Zfinix/835f2c0f1a92d297a0b6fd88acff6321 to your computer and use it in GitHub Desktop.

Select an option

Save Zfinix/835f2c0f1a92d297a0b6fd88acff6321 to your computer and use it in GitHub Desktop.
# Use the latest 2.1 version of CircleCI pipeline process engine. See: https://circleci.com/docs/2.0/configuration-reference
version: 2.1
# Orchestrate or schedule a set of jobs
jobs:
build:
# Declare a dependency on the cirrusci/flutter docker image
docker:
- image: cirrusci/flutter:v1.5.8
# Flutter channel to run with
branches:
only: master
# Run the job in its own container with different tasks as setps
steps:
- checkout
- run:
name: Run Flutter doctor
command: flutter doctor
- run:
name: Run the application tests
command: flutter test
- run:
name: Build the Android version
command: flutter build apk
- store_artifacts:
path: build/app/outputs/apk/release/app-release.apk
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment