Skip to content

Commit 566663e

Browse files
Create .travis.yml
1 parent f03b038 commit 566663e

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.travis.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
os:
2+
- linux
3+
4+
sudo: false
5+
6+
git:
7+
depth: 3
8+
9+
cache:
10+
directories:
11+
- $HOME/.pub-cache
12+
13+
env:
14+
- FLUTTER_VERSION=stable
15+
16+
# Only building master means that we don't run two builds for each pull request.
17+
branches:
18+
only: [master]
19+
20+
before_script:
21+
- cd ../
22+
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION
23+
- ./flutter/bin/flutter doctor
24+
- cd before_after/
25+
26+
script:
27+
- ./../flutter/bin/flutter analyze .
28+
- ./../flutter/bin/cache/dart-sdk/bin/dartfmt --dry-run lib/
29+
- ./../flutter/bin/cache/dart-sdk/bin/dartfmt --dry-run example/lib/

0 commit comments

Comments
 (0)