forked from xsahil03x/fancy_on_boarding
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
34 lines (26 loc) · 758 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
os:
- linux
sudo: false
git:
depth: 3
cache:
directories:
- $HOME/.pub-cache
env:
- FLUTTER_VERSION=stable
# Only building master means that we don't run two builds for each pull request.
branches:
only: [master]
before_script:
- cd ../
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION
- ./flutter/bin/flutter doctor
- cd fancy_on_boarding/
script:
- ./../flutter/bin/flutter analyze .
- ./../flutter/bin/cache/dart-sdk/bin/dartfmt --dry-run lib/
- ./../flutter/bin/cache/dart-sdk/bin/dartfmt --dry-run test/
- ./../flutter/bin/cache/dart-sdk/bin/dartfmt --dry-run example/lib/
- ./../flutter/bin/flutter test --no-test-assets --coverage
after_success:
- bash <(curl -s https://codecov.io/bash)