-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
48 lines (41 loc) · 1.38 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
language: dart
sudo: required
dart:
- 1.24.2
addons:
apt:
packages:
- ttf-kochi-mincho
- ttf-kochi-gothic
- ttf-dejavu
- ttf-indic-fonts
- fonts-tlwg-garuda
- lcov
before_install:
# Workaround for https://github.com/travis-ci/travis-ci/issues/8607
- sudo rm -vf /etc/apt/sources.list.d/*riak*
# 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
- export DISPLAY=:99.0
- ./tool/setup_dartium.sh
- export PATH=$PATH":$PWD"
- sh -e /etc/init.d/xvfb start
script:
- pub get --packages-dir
- pub run dart_dev format --check
- pub run dart_dev analyze
- pub run dart_dev test
- pub run dart_dev coverage --no-html
- bash <(curl -s https://codecov.io/bash) -f coverage/coverage.lcov