From 7fe8bf2813b8296a4478177c874f0be1626b8762 Mon Sep 17 00:00:00 2001 From: Gary Roumanis Date: Fri, 4 Aug 2017 10:10:38 -0700 Subject: [PATCH] Fix travis hack --- .travis.yml | 3 +++ CHANGELOG.md | 4 ++++ lib/src/executable.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index cb228b5ce..aef222851 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,9 @@ dart: - stable - 1.23.0 +env: + - FORCE_TEST_EXIT=true + # Content shell needs these fonts. addons: apt: diff --git a/CHANGELOG.md b/CHANGELOG.md index 0189082ad..efb9a30b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.12.24+2 + +* Only force exit if `FORCE_TEST_EXIT` is set in the environment. + ## 0.12.24+1 * Widen version constraint on `analyzer`. diff --git a/lib/src/executable.dart b/lib/src/executable.dart index 8293985a8..1b2b1d772 100644 --- a/lib/src/executable.dart +++ b/lib/src/executable.dart @@ -185,7 +185,7 @@ transformers: // TODO(grouma) - figure out why the executable can hang in the travis // environment. https://github.com/dart-lang/test/issues/599 - if (Platform.environment["TRAVIS"] == "true") { + if (Platform.environment["FORCE_TEST_EXIT"] == "true") { exit(exitCode); } } diff --git a/pubspec.yaml b/pubspec.yaml index 8f3e4e5c0..9b3d340d8 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: test -version: 0.12.24+1 +version: 0.12.24+2 author: Dart Team description: A library for writing dart unit tests. homepage: https://github.com/dart-lang/test