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 DCM add the following script to codemagic.yaml
codemagic.yaml
scripts:
- echo 'previous step'
- name: DCM
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 DCM check the Enable Dart Code Metrics
option:
check out Codemagic docs for more details about the Flutter workflow editor setup.