-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.travis.yml
More file actions
32 lines (32 loc) · 781 Bytes
/
.travis.yml
File metadata and controls
32 lines (32 loc) · 781 Bytes
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
language: dart
os:
- linux
sudo: required
dist: xenial
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
- fonts-droid-fallback
# safelist
branches:
only:
- master
install:
- echo 'Avoid default Travis CI install step' # this is to avoid an error with pub in Travis
before_script:
- git clone https://github.com/flutter/flutter.git -b stable --depth 1
- mv flutter $HOME/flutter
- export PATH=$HOME/flutter/bin:$PATH
- flutter doctor -v
script:
- flutter pub get
- flutter format -n --set-exit-if-changed ./lib ./test ./example || travis_terminate 1
- flutter test --coverage --coverage-path=coverage.lcov
after_success:
- bash <(curl -s https://codecov.io/bash)
cache:
directories:
- $HOME/.pub-cache