Skip to content

Commit 2fb0e72

Browse files
committed
Add Chrome to Travis, enable OSX and set default Linux Chrome path
1 parent 9938792 commit 2fb0e72

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.travis.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
os:
2+
- linux
3+
- osx
4+
15
language: dart
26
dart:
37
- "dev/raw/latest"
8+
addons:
9+
chrome: stable
410

511
script: ./tool/travis.sh
612

test/src/chrome.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ class Chrome {
2929
if (FileSystemEntity.isDirectorySync(defaultPath)) {
3030
return new Chrome.from(path.join(defaultPath, bundlePath));
3131
}
32+
} else if (Platform.isLinux) {
33+
const String defaultPath = '/usr/bin/google-chrome';
34+
35+
if (FileSystemEntity.isDirectorySync(defaultPath)) {
36+
return new Chrome.from(defaultPath);
37+
}
3238
}
3339

3440
// TODO(devoncarew): check default install locations for linux

tool/travis.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# found in the LICENSE file.
66

77
# Fast fail the script on failures.
8-
set -e
8+
#set -e
99

1010
# Print out the Dart version in use.
1111
dart --version

0 commit comments

Comments
 (0)