forked from aagarwal1012/IntroViews-Flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
34 lines (34 loc) · 808 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
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- libstdc++6
- fonts-droid
git:
depth: 3
cache:
directories:
- $HOME/.pub-cache
env:
- FLUTTER_VERSION=beta
- FLUTTER_VERSION=dev
- FLUTTER_VERSION=stable
matrix:
allow_failures:
- env: FLUTTER_VERSION=dev
- env: FLUTTER_VERSION=beta
before_script:
- cd ../
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION
- ./flutter/bin/flutter doctor
- cd IntroViews-Flutter/
script:
- ./../flutter/bin/flutter test
- ./../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/