-
Notifications
You must be signed in to change notification settings - Fork 2
/
.rultor.yml
31 lines (31 loc) · 988 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
31
docker:
image: dart:stable
as_root: true
architect:
- rafamizes
assets:
credentials.json: rafamizes/secret#assets/publishing/flutter/credentials.json
merge:
rebase: true
script: |
dart pub get
dart format --set-exit-if-changed lib/ test/ example/
dart analyze lib/ test/ example/
dart test
dart 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 "/\[Unreleased\]/a\\\n## [$tag] - $(date '+%F')" CHANGELOG.md
# mkdir -p ~/.pub-cache
# mv ../credentials.json ~/.pub-cache/credentials.json
# dart pub publish -f
git commit -am "version $tag"
git checkout master
git merge __rultor
git checkout __rultor