Skip to content

Commit 7ea1cb6

Browse files
authored
Fix travis hack (#672)
1 parent d200802 commit 7ea1cb6

File tree

4 files changed

+9
-2
lines changed

4 files changed

+9
-2
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ dart:
99
- stable
1010
- 1.23.0
1111

12+
env:
13+
- FORCE_TEST_EXIT=true
14+
1215
# Content shell needs these fonts.
1316
addons:
1417
apt:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.12.24+2
2+
3+
* Only force exit if `FORCE_TEST_EXIT` is set in the environment.
4+
15
## 0.12.24+1
26

37
* Widen version constraint on `analyzer`.

lib/src/executable.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ transformers:
185185

186186
// TODO(grouma) - figure out why the executable can hang in the travis
187187
// environment. https://github.com/dart-lang/test/issues/599
188-
if (Platform.environment["TRAVIS"] == "true") {
188+
if (Platform.environment["FORCE_TEST_EXIT"] == "true") {
189189
exit(exitCode);
190190
}
191191
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: test
2-
version: 0.12.24+1
2+
version: 0.12.24+2
33
author: Dart Team <[email protected]>
44
description: A library for writing dart unit tests.
55
homepage: https://github.com/dart-lang/test

0 commit comments

Comments
 (0)