-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run tests in dart2js on Chromium on Smithy
- Loading branch information
1 parent
ae2f09c
commit ab356ca
Showing
3 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# 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 | ||
|
||
set -e | ||
|
||
# Trick the test package into using Chromium instead of Chrome | ||
TMP_BIN=$(mktemp -d) | ||
ln -s "$(which chromium-browser)" "$TMP_BIN/google-chrome" | ||
export PATH="$PATH:$TMP_BIN" | ||
|
||
# Run the tests | ||
DART_FLAGS=--checked xvfb-run -s '-screen 0 1024x768x24' pub run dart_dev test -p chrome | ||
|
||
# Be sneaky and clean up our tricks | ||
rm -rf "$TMP_BIN" |