Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
chromium.googlesource.com-external-github.com-dart-lang-test
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
fuchsia-mirror
chromium.googlesource.com-external-github.com-dart-lang-test
Commits
17c77675
Commit
17c77675
authored
7 years ago
by
Natalie Weizenbaum
Browse files
Options
Downloads
Patches
Plain Diff
Enable browser tests on Travis.
parent
1d595f99
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.travis.yml
+50
-4
50 additions, 4 deletions
.travis.yml
dart_test.yaml
+8
-1
8 additions, 1 deletion
dart_test.yaml
with
58 additions
and
5 deletions
.travis.yml
+
50
−
4
View file @
17c77675
language
:
dart
sudo
:
false
sudo
:
required
# We require PhantomJS 2.x, which is only available on Trusty.
dist
:
trusty
dart
:
-
dev
...
...
@@ -7,18 +10,61 @@ dart:
-
1.23.0
-
1.22.1
# Content shell needs these fonts.
addons
:
apt
:
packages
:
-
ttf-kochi-mincho
-
ttf-kochi-gothic
-
ttf-dejavu
-
ttf-indic-fonts
-
fonts-tlwg-garuda
before_install
:
# Content shell needs this font. Since it has a EULA, we need to manually
# install it.
#
# TODO: remove this and use "sudo: false" when travis-ci/travis-ci#4714 is
# fixed.
-
sudo apt-get update -yq
-
sudo sh -c "echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select
true
| debconf-set-selections"
-
sudo apt-get install msttcorefonts -qq
-
mkdir -p bin
-
export PATH="$PATH:`pwd`/bin/"
-
ln -s `which chromium-browser` bin/google-chrome
-
wget "http://gsdview.appspot.com/dart-archive/channels/stable/release/latest/dartium/content_shell-linux-x64-release.zip"
-
unzip content_shell-linux-x64-release.zip
-
ln -s `pwd`/`echo drt-linux-*`/content_shell bin/content_shell
dart_task
:
# Browser tests take particularly long on Dartium, so we split them up into different tasks.
-
test
:
--platform dartium
install_dartium
:
true
-
test
:
--platform vm -x content-shell -x chrome -x firefox -x dartium -x phantomjs --timeout 4x
-
dartfmt
-
dartanalyzer
# Split the tests into four shards to help parallelize them across Travis workers.
-
test
:
--preset travis --total-shards 5 --shard-index
0
install_dartium
:
true
-
test
:
--preset travis --total-shards 5 --shard-index
1
install_dartium
:
true
-
test
:
--preset travis --total-shards 5 --shard-index
2
install_dartium
:
true
-
test
:
--preset travis --total-shards 5 --shard-index
3
install_dartium
:
true
-
test
:
--preset travis --total-shards 5 --shard-index
4
install_dartium
:
true
matrix
:
exclude
:
# Repo was formatted with the 1.23 SDK.
-
dart
:
1.22.1
dart_task
:
dartfmt
include
:
-
dart
:
stable
dart_task
:
dartfmt
-
dart
:
dev
dart_task
:
dartanalyzer
# Only building master means that we don't run two builds for each pull request.
branches
:
...
...
This diff is collapsed.
Click to expand it.
dart_test.yaml
+
8
−
1
View file @
17c77675
...
...
@@ -2,7 +2,14 @@
verbose_trace
:
true
tags
:
browser
:
{
timeout
:
2x
}
browser
:
timeout
:
2x
# Browsers can sometimes randomly time out while starting, especially on
# Travis which is pretty slow. Don't retry locally because it makes
# debugging more annoying.
presets
:
{
travis
:
{
retry
:
3
}}
dart2js
:
add_tags
:
[
browser
]
timeout
:
2x
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment