diff --git a/smithy.yaml b/smithy.yaml index 3b5f060bff..afbe436ad6 100644 --- a/smithy.yaml +++ b/smithy.yaml @@ -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 diff --git a/tool/dev.dart b/tool/dev.dart index e3f9d88f0d..83740a0846 100644 --- a/tool/dev.dart +++ b/tool/dev.dart @@ -30,7 +30,11 @@ main(List 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