Skip to content
This repository was archived by the owner on Jul 30, 2021. It is now read-only.

Commit 2675de0

Browse files
committed
update travis.yaml
1 parent 4d23cc9 commit 2675de0

File tree

1 file changed

+36
-4
lines changed

1 file changed

+36
-4
lines changed

.travis.yml

+36-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,42 @@
11
language: dart
2+
sudo: required
3+
24
dart:
3-
- 1.24.2
4-
with_content_shell: true
5+
- stable
6+
7+
addons:
8+
apt:
9+
packages:
10+
- ttf-kochi-mincho
11+
- ttf-kochi-gothic
12+
- ttf-dejavu
13+
- ttf-indic-fonts
14+
- fonts-tlwg-garuda
15+
516
before_install:
6-
- export DISPLAY=:99.0
7-
- sh -e /etc/init.d/xvfb start
17+
# Workaround for https://github.com/travis-ci/travis-ci/issues/8607
18+
- sudo rm -vf /etc/apt/sources.list.d/*riak*
19+
# Content shell needs this font. Since it has a EULA, we need to manually
20+
# install it.
21+
#
22+
# TODO: remove this and use "sudo: false" when travis-ci/travis-ci#4714 is
23+
# fixed.
24+
- sudo apt-get update -yq
25+
- sudo sh -c "echo ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true | debconf-set-selections"
26+
- sudo apt-get install msttcorefonts -qq
27+
28+
- mkdir -p bin
29+
- export PATH="$PATH:`pwd`/bin/"
30+
- ln -s `which chromium-browser` bin/google-chrome
31+
32+
- wget "http://gsdview.appspot.com/dart-archive/channels/stable/release/latest/dartium/content_shell-linux-x64-release.zip"
33+
- unzip content_shell-linux-x64-release.zip
34+
- ln -s `pwd`/`echo drt-linux-*`/content_shell bin/content_shell
35+
36+
- export DISPLAY=:99.0
37+
- export PATH=$PATH":$PWD"
38+
- sh -e /etc/init.d/xvfb start
39+
840
script:
941
- pub run dart_dev format --check
1042
- pub run dart_dev analyze

0 commit comments

Comments
 (0)