Skip to content

Commit f174168

Browse files
authored
Prepare to publish json_annotation 0.2.5 (#174)
1 parent 4e49b62 commit f174168

File tree

5 files changed

+15
-21
lines changed

5 files changed

+15
-21
lines changed

.travis.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,10 @@ jobs:
1919
script: ./tool/travis.sh dartfmt
2020
env: PKG="json_annotation"
2121
dart: dev
22-
- stage: analyzer_and_format
23-
script: ./tool/travis.sh dartfmt
24-
env: PKG="json_annotation"
25-
dart: stable
2622
- stage: analyzer_and_format
2723
script: ./tool/travis.sh dartanalyzer
2824
env: PKG="json_annotation"
2925
dart: dev
30-
- stage: analyzer_and_format
31-
script: ./tool/travis.sh dartanalyzer
32-
env: PKG="json_annotation"
33-
dart: stable
3426
- stage: analyzer_and_format
3527
script: ./tool/travis.sh dartfmt
3628
env: PKG="json_serializable"

json_annotation/.mono_repo.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# See https://github.com/dart-lang/mono_repo for details
22
dart:
33
- dev
4-
- stable
54

65
stages:
76
- analyzer_and_format:

json_annotation/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Added `CheckedFromJsonException` which is thrown by code generated when
44
`checked` is enabled in `json_serializable`.
55

6-
* Also added functions to support the `checked` generation option. These
6+
* Added functions to support the `checked` generation option. These
77
functions start with `$` are referenced by generated code. They are not meant
88
for direct use.
99

json_annotation/pubspec.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: json_annotation
2-
version: 0.2.5-dev
3-
description: Annotations for the json_serializable package
2+
version: 0.2.5
3+
description: >-
4+
Classes and helper functions that support JSON code generation via the
5+
`json_serializable` package.
46
homepage: https://github.com/dart-lang/json_serializable
57
author: Dart Team <misc@dartlang.org>
68
environment:
7-
sdk: '>=1.24.0 <2.0.0'
9+
sdk: '>=2.0.0-dev.54.0 <2.0.0'

tool/travis.sh

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/bin/bash
22
# Created with https://github.com/dart-lang/mono_repo
33

4-
# Fast fail the script on failures.
5-
set -e
6-
74
if [ -z "$PKG" ]; then
85
echo -e '\033[31mPKG environment variable must be set!\033[0m'
96
exit 1
@@ -15,30 +12,34 @@ if [ "$#" == "0" ]; then
1512
fi
1613

1714
pushd $PKG
18-
pub upgrade
15+
pub upgrade || exit $?
16+
17+
EXIT_CODE=0
1918

2019
while (( "$#" )); do
2120
TASK=$1
2221
case $TASK in
2322
dartanalyzer) echo
2423
echo -e '\033[1mTASK: dartanalyzer\033[22m'
2524
echo -e 'dartanalyzer --fatal-infos --fatal-warnings .'
26-
dartanalyzer --fatal-infos --fatal-warnings .
25+
dartanalyzer --fatal-infos --fatal-warnings . || EXIT_CODE=$?
2726
;;
2827
dartfmt) echo
2928
echo -e '\033[1mTASK: dartfmt\033[22m'
3029
echo -e 'dartfmt -n --set-exit-if-changed .'
31-
dartfmt -n --set-exit-if-changed .
30+
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
3231
;;
3332
test) echo
3433
echo -e '\033[1mTASK: test\033[22m'
3534
echo -e 'pub run test --run-skipped'
36-
pub run test --run-skipped
35+
pub run test --run-skipped || EXIT_CODE=$?
3736
;;
3837
*) echo -e "\033[31mNot expecting TASK '${TASK}'. Error!\033[0m"
39-
exit 1
38+
EXIT_CODE=1
4039
;;
4140
esac
4241

4342
shift
4443
done
44+
45+
exit $EXIT_CODE

0 commit comments

Comments
 (0)