Skip to content

Commit

Permalink
Run tests in dart2js on Chromium on Smithy
Browse files Browse the repository at this point in the history
  • Loading branch information
greglittlefield-wf committed Dec 30, 2016
1 parent ae2f09c commit a18acb2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions smithy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ runner_image: drydock-prod.workiva.org/workiva/smithy-runner-dart:74173
script:
- pub get

# Can't run tests in dart2js on Travis since the suite takes too long to load and times out.
# Run on Smithy instead.
# See https://github.com/Workiva/over_react/issues/36

# Trick the test package into using Chromium instead of Chrome, and run the tests.
- TMP_BIN=$(mktemp)
- ln -s "$(which chromium-browser)" "$TMP_BIN/google-chrome"
- DART_FLAGS=--checked PATH="$PATH:$TMP_BIN" xvfb-run -s '-screen 0 1024x768x24' pub run dart_dev test -p chrome
- rm -rf "$TMP_BIN"

artifacts:
build:
- ./pubspec.lock
6 changes: 5 additions & 1 deletion tool/dev.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ main(List<String> args) async {
..pubServe = true
..platforms = [
'vm',
'content-shell'
'content-shell',
// Can't run tests in dart2js on Travis since the suite takes too long to load and times out.
// Run on Smithy instead.
// See https://github.com/Workiva/over_react/issues/36
// 'chrome',
]
// Prevent test load timeouts on Smithy.
..concurrency = 1
Expand Down

0 comments on commit a18acb2

Please sign in to comment.