-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
42 lines (34 loc) · 991 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
language: dart
dart:
- 2.10.1
jobs:
include:
- stage: analyze_and_format
name: "Analyze"
os: linux
script: dartanalyzer --enable-experiment=non-nullable --fatal-warnings --fatal-infos .
- stage: analyze_and_format
name: "Format"
os: linux
script: dartfmt -n --set-exit-if-changed .
- stage: test
name: "VM Tests"
os: linux
script:
- pub global activate coverage
- dart test -p vm --coverage=coverage
- pub global run coverage:format_coverage --in coverage/test/maybe_slow_future_test.dart.vm.json --out coverage/lcov.info --lcov --packages=.packages --report-on=lib/
- bash <(curl -s https://codecov.io/bash)
- stage: test
name: "Web Tests"
os: linux
script: pub run --enable-experiment=non-nullable test -p chrome
stages:
- analyze_and_format
- test
# Only building master means that we don't run two builds for each pull request.
branches:
only: [main]
cache:
directories:
- $HOME/.pub-cache