Skip to content

Commit e14fad4

Browse files
committed
add .travis.yml
1 parent 17bd019 commit e14fad4

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.travis.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
language: dart
2+
dart:
3+
- stable
4+
- dev
5+
script:
6+
- dartanalyzer --fatal-infos --fatal-warnings ./lib ./test
7+
- dartfmt -n ./lib --set-exit-if-changed
8+
- pub get
9+
- pub global activate coverage
10+
- pub run test/rx_storage_test.dart
11+
- dart --disable-service-auth-codes --enable-vm-service=8111 --pause-isolates-on-exit test/rx_storage_test.dart &
12+
- nohup pub global run coverage:collect_coverage --port=8111 --out=coverage.json --wait-paused --resume-isolates
13+
- pub global run coverage:format_coverage --lcov --in=coverage.json --out=lcov.info --packages=.packages --report-on=lib
14+
after_success:
15+
- bash <(curl -s https://codecov.io/bash)
16+
cache:
17+
directories:
18+
- $HOME/.pub-cache

0 commit comments

Comments
 (0)