Skip to content

Commit

Permalink
feat: add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrgnhnt96 committed May 2, 2023
1 parent 117a1e4 commit c07b8ad
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions derry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
tests:
- rm -rf coverage
- dart run test --coverage coverage -r expanded --test-randomize-ordering-seed random --timeout 60s
- $coverage

coverage:
upload:
- val=$(cat .codecov_secret); ./codecov -t $val
build:
- format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
- genhtml coverage/lcov.info -o coverage
- open coverage/index.html
- curl -Os https://uploader.codecov.io/latest/macos/codecov
- chmod +x codecov

prep:
- flutter clean
- dart pub upgrade
- dart analyze lib test
- dart format lib test
- dart pub global run import_sorter:main --no-comments

publish:
- sh ./publish_package.sh
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ dev_dependencies:
mocktail: ^0.3.0
test: ^1.19.2
very_good_analysis: ^3.1.0

scripts: derry.yaml

0 comments on commit c07b8ad

Please sign in to comment.