forked from zino-hofmann/graphql-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.cirrus.yml
21 lines (20 loc) · 1018 Bytes
/
.cirrus.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
container:
image: cirrusci/flutter:latest
test_task:
# pub_cache:
# folder: $HOME/.pub-cache
# fingerprint_script: cat pubspec.lock
# populate_script: pub get
pub_script: flutter packages get # later when we seperate graphql_client and graphql_flutter, we can change this
# format_script: dartfmt **/*.dart -n --set-exit-if-changed
# analyze_script: dartanalyzer --fatal-infos .
# publishable_script: pub publish --dry-run
environment:
CODECOV_TOKEN: ENCRYPTED[fa57a1dda8bca6ad45ef10043f632b68b7824b60c634415f741a847788c1a44ae9374155e3af3346fb9b6d72bac0e1d3]
test_script:
# - pub global activate coverage
# - dart --enable-vm-service=8111 --pause-isolates-on-exit test/* &
# - pub global run coverage:collect_coverage --port=8111 --out=coverage.json --wait-paused --resume-isolates
# - pub global run coverage:format_coverage --lcov --in=coverage.json --out=lcov.info --packages=.packages --report-on=lib
- flutter test --coverage
- bash <(curl -s https://codecov.io/bash)