Search packages, repositories and app categories

Package detailsv0.1.0

ci

Detect whether you're running in a CI environment and information about the CI vendor.

AndroidiOSmacOSWindowsLinux
30-day downloads
1.1M
Likes
7
Pub points
160

Install package

flutter pub add ci

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The ci package detects if the current environment is a CI (Continuous Integration) system and provides details about the specific CI vendor, such as GitHub Actions, GitLab CI, or CircleCI. It helps developers conditionally execute code based on whether the app is running in a CI pipeline, enabling tailored behavior for builds, tests, or deployments. The package supports multiple platforms including Android, iOS, macOS, Windows, and Linux, making it ideal for cross-platform Flutter applications that need to adapt to different execution environments.

Use cases

  • Conditional build logic
  • Automated testing workflows
  • Deployment configuration
  • Environment-aware debugging
  • CI-specific logging
  • Secure credential handling

Key features

  • Detects CI environment
  • Identifies CI vendor
  • Cross-platform support
  • Lightweight and simple API
  • No external dependencies
  • Real-time environment detection

Suitable for

  • Flutter apps with CI integration
  • Build automation scripts
  • Test suite customization
  • Multi-platform deployment pipelines
  • Developers needing environment awareness

Considerations

  • Limited to known CI providers
  • Does not support custom CI systems
  • Relies on environment variables
  • May require manual verification in edge cases
  • No runtime configuration options

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

⚒️ Dart CLI Utilities

A monorepo containing a collection of packages that provide useful functionality for building CLI applications in Dart.

Melos docs.page Chat on Discord

License


Packages
  • 🌈 AnsiStyles
    • Create colorful terminal output with ansi styled text in io environments.
  • ☁️ CI
    • Detect whether you're running in a CI environment and retrieve information about the CI vendor.
  • 📦 StorageBox
    • Easily store and persist configuration items for your CLI apps.

Built and maintained by Invertase.

Categories

Source repository

Projects using this package