forked from xvrh/puppeteer-dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
43 lines (34 loc) · 939 Bytes
/
.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
language: dart
os:
- linux
- osx
- windows
dart:
- stable
before_script:
- dart example/download_chromium.dart
dart_task:
- test: -P ci --platform vm
- dartanalyzer: --fatal-infos --fatal-warnings .
- dartfmt: true
jobs:
include:
- stage: coverage
os: osx
script:
- pub global activate coverage
- dart --disable-service-auth-codes --enable-vm-service=8111 --pause-isolates-on-exit test/test_all.dart &
- pub global run coverage:collect_coverage --port=8111 --out=coverage.json --wait-paused --resume-isolates
- pub global run coverage:format_coverage --lcov --in=coverage.json --out=lcov.info --packages=.packages --report-on=lib/src
after_success:
- gem install coveralls-lcov
- coveralls-lcov lcov.info
branches:
only: [master]
env:
global:
#In travis/docker we need the --no-sandbox flag in chrome
- CHROME_FORCE_NO_SANDBOX=true
cache:
directories:
- $HOME/.pub-cache