Codemagic
Codemagic is a CI/CD solution which helps you test and release your Flutter apps with zero configuration and no pain.
Usage
With codemagic.yaml
To enable Dart Code Metrics add the following script to codemagic.yaml
codemagic.yaml
scripts:
- echo 'previous step'
- name: Dart Code Metrics
script: |
mkdir -p metrics-results
flutter pub run dart_code_metrics:metrics analyze lib --reporter=json > metrics-results/dart_code_metrics.json
test_report: metrics-results/dart_code_metrics.json
check out Codemagic docs for more details about codemagic.yaml
setup.
With the Flutter workflow editor
To enable Dart Code Metrics check the Enable Dart Code Metrics
option:
check out Codemagic docs for more details about the Flutter workflow editor setup.