File tree 5 files changed +15
-21
lines changed
5 files changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -19,18 +19,10 @@ jobs:
19
19
script : ./tool/travis.sh dartfmt
20
20
env : PKG="json_annotation"
21
21
dart : dev
22
- - stage : analyzer_and_format
23
- script : ./tool/travis.sh dartfmt
24
- env : PKG="json_annotation"
25
- dart : stable
26
22
- stage : analyzer_and_format
27
23
script : ./tool/travis.sh dartanalyzer
28
24
env : PKG="json_annotation"
29
25
dart : dev
30
- - stage : analyzer_and_format
31
- script : ./tool/travis.sh dartanalyzer
32
- env : PKG="json_annotation"
33
- dart : stable
34
26
- stage : analyzer_and_format
35
27
script : ./tool/travis.sh dartfmt
36
28
env : PKG="json_serializable"
Original file line number Diff line number Diff line change 1
1
# See https://github.com/dart-lang/mono_repo for details
2
2
dart :
3
3
- dev
4
- - stable
5
4
6
5
stages :
7
6
- analyzer_and_format :
Original file line number Diff line number Diff line change 3
3
* Added ` CheckedFromJsonException ` which is thrown by code generated when
4
4
` checked ` is enabled in ` json_serializable ` .
5
5
6
- * Also added functions to support the ` checked ` generation option. These
6
+ * Added functions to support the ` checked ` generation option. These
7
7
functions start with ` $ ` are referenced by generated code. They are not meant
8
8
for direct use.
9
9
Original file line number Diff line number Diff line change 1
1
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.
4
6
homepage : https://github.com/dart-lang/json_serializable
5
7
author : Dart Team <misc@dartlang.org>
6
8
environment :
7
- sdk : ' >=1.24 .0 <2.0.0'
9
+ sdk : ' >=2.0.0-dev.54 .0 <2.0.0'
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
# Created with https://github.com/dart-lang/mono_repo
3
3
4
- # Fast fail the script on failures.
5
- set -e
6
-
7
4
if [ -z " $PKG " ]; then
8
5
echo -e ' \033[31mPKG environment variable must be set!\033[0m'
9
6
exit 1
@@ -15,30 +12,34 @@ if [ "$#" == "0" ]; then
15
12
fi
16
13
17
14
pushd $PKG
18
- pub upgrade
15
+ pub upgrade || exit $?
16
+
17
+ EXIT_CODE=0
19
18
20
19
while (( "$# " )) ; do
21
20
TASK=$1
22
21
case $TASK in
23
22
dartanalyzer) echo
24
23
echo -e ' \033[1mTASK: dartanalyzer\033[22m'
25
24
echo -e ' dartanalyzer --fatal-infos --fatal-warnings .'
26
- dartanalyzer --fatal-infos --fatal-warnings .
25
+ dartanalyzer --fatal-infos --fatal-warnings . || EXIT_CODE= $?
27
26
;;
28
27
dartfmt) echo
29
28
echo -e ' \033[1mTASK: dartfmt\033[22m'
30
29
echo -e ' dartfmt -n --set-exit-if-changed .'
31
- dartfmt -n --set-exit-if-changed .
30
+ dartfmt -n --set-exit-if-changed . || EXIT_CODE= $?
32
31
;;
33
32
test) echo
34
33
echo -e ' \033[1mTASK: test\033[22m'
35
34
echo -e ' pub run test --run-skipped'
36
- pub run test --run-skipped
35
+ pub run test --run-skipped || EXIT_CODE= $?
37
36
;;
38
37
* ) echo -e " \033[31mNot expecting TASK '${TASK} '. Error!\033[0m"
39
- exit 1
38
+ EXIT_CODE= 1
40
39
;;
41
40
esac
42
41
43
42
shift
44
43
done
44
+
45
+ exit $EXIT_CODE
You can’t perform that action at this time.
0 commit comments