-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rultor.yml
30 lines (30 loc) · 990 Bytes
/
.rultor.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
docker:
image: cirrusci/flutter:stable
as_root: true
architect:
- rafamizes
assets:
credentials.json: rafamizes/secret#assets/publishing/flutter/credentials.json
merge:
rebase: true
script: |
flutter clean
flutter pub get
flutter format --set-exit-if-changed lib/ test/
flutter analyze --no-current-package lib/ test/
flutter test --no-pub --coverage
bash <(curl -s https://codecov.io/bash)
flutter pub publish --dry-run
release:
# updates pubspec.yaml's version attribute to $tag;
# in CHANGELOG, places section '[$tag] - YYYY-mm-dd' under [Unreleaded];
# commits the $tag version and publishes to pub.dev;
# Rultor tags the lastest commit as $tag and push the new tag to the
# repository.
script: |-
sed -i "s/^\(version:\).*/\1 $tag/" pubspec.yaml
sed -i "/\[[Uu]nreleased\]/a\\\n## [$tag] - $(date '+%F')" CHANGELOG.md
git commit -am "version $tag"
git checkout master
git merge __rultor
git checkout __rultor