Skip to content

Prepare to publish json_annotation 0.2.5 #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 22, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,10 @@ jobs:
script: ./tool/travis.sh dartfmt
env: PKG="json_annotation"
dart: dev
- stage: analyzer_and_format
script: ./tool/travis.sh dartfmt
env: PKG="json_annotation"
dart: stable
- stage: analyzer_and_format
script: ./tool/travis.sh dartanalyzer
env: PKG="json_annotation"
dart: dev
- stage: analyzer_and_format
script: ./tool/travis.sh dartanalyzer
env: PKG="json_annotation"
dart: stable
- stage: analyzer_and_format
script: ./tool/travis.sh dartfmt
env: PKG="json_serializable"
Expand Down
1 change: 0 additions & 1 deletion json_annotation/.mono_repo.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# See https://github.com/dart-lang/mono_repo for details
dart:
- dev
- stable

stages:
- analyzer_and_format:
Expand Down
2 changes: 1 addition & 1 deletion json_annotation/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Added `CheckedFromJsonException` which is thrown by code generated when
`checked` is enabled in `json_serializable`.

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

Expand Down
8 changes: 5 additions & 3 deletions json_annotation/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: json_annotation
version: 0.2.5-dev
description: Annotations for the json_serializable package
version: 0.2.5
description: >-
Classes and helper functions that support JSON code generation via the
`json_serializable` package.
homepage: https://github.com/dart-lang/json_serializable
author: Dart Team <misc@dartlang.org>
environment:
sdk: '>=1.24.0 <2.0.0'
sdk: '>=2.0.0-dev.54.0 <2.0.0'
17 changes: 9 additions & 8 deletions tool/travis.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
#!/bin/bash
# Created with https://github.com/dart-lang/mono_repo

# Fast fail the script on failures.
set -e

if [ -z "$PKG" ]; then
echo -e '\033[31mPKG environment variable must be set!\033[0m'
exit 1
Expand All @@ -15,30 +12,34 @@ if [ "$#" == "0" ]; then
fi

pushd $PKG
pub upgrade
pub upgrade || exit $?

EXIT_CODE=0

while (( "$#" )); do
TASK=$1
case $TASK in
dartanalyzer) echo
echo -e '\033[1mTASK: dartanalyzer\033[22m'
echo -e 'dartanalyzer --fatal-infos --fatal-warnings .'
dartanalyzer --fatal-infos --fatal-warnings .
dartanalyzer --fatal-infos --fatal-warnings . || EXIT_CODE=$?
;;
dartfmt) echo
echo -e '\033[1mTASK: dartfmt\033[22m'
echo -e 'dartfmt -n --set-exit-if-changed .'
dartfmt -n --set-exit-if-changed .
dartfmt -n --set-exit-if-changed . || EXIT_CODE=$?
;;
test) echo
echo -e '\033[1mTASK: test\033[22m'
echo -e 'pub run test --run-skipped'
pub run test --run-skipped
pub run test --run-skipped || EXIT_CODE=$?
;;
*) echo -e "\033[31mNot expecting TASK '${TASK}'. Error!\033[0m"
exit 1
EXIT_CODE=1
;;
esac

shift
done

exit $EXIT_CODE