Skip to content

A Semaphore CI/CD demo pipeline using Flutter 2

License

Notifications You must be signed in to change notification settings

semaphoreci-demos/semaphore-demo-flutter

Repository files navigation

Flutter 2.0 Test Demo

Build Status style: very good analysis

Example repository showcasing a pipeline with different kinds of tests for a Flutter 2.0 application.

Versions

Name Version
Flutter SDK v2.2.2 (stable)
Dart SDK > 2.12.0

Setup

  1. Run diagnostics

Verify installed Flutter SDK version

flutter doctor -v
  1. Clone the project
git clone https://github.com/semaphoreci-demos/semaphore-demo-flutter2
  1. Install dependencies
flutter packages get
  1. Run the project
flutter run
  1. Run the unit & widget tests
flutter test test
  1. Run the integration tests

For example, adding new item in the list

flutter test integration_test/add_new_todo_item_test.dart

See integration_tests for the list of available integration tests.

Continuous Integration

The demo includes a working Semaphore CI in the main branch. Fork this repository and use it to [create your own project][create-project] on Semaphore.

The CI pipeline will look like this:

The example pipeline contains 4 blocks.

  1. Install and cache Flutter dependencies.
  2. Run Linting and code analysis tests.
  3. Run unit and widget tests.
  4. Run integration tests on an emulator.

License

Copyright (c) 2021 Rendered Text

Distributed under the MIT License. See the file LICENSE.

About

A Semaphore CI/CD demo pipeline using Flutter 2

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published