forked from JonathanMonga/flutter_shine.dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
31 lines (30 loc) · 774 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
language: bash
os:
- linux
env:
- FLUTTER_CHANNEL="stable"
- FLUTTER_CHANNEL="master"
sudo: false
before_script:
- cd ..
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_CHANNEL
- export PATH=$PATH:$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin
- cd -
- flutter doctor
script:
- set -e # abort CI if an error happens
# Change permission
- chmod 777 scripts/flutter_test.sh
- ./scripts/flutter_test.sh packages/flutter_shine
- ./scripts/flutter_test.sh packages/flutter_shine/example
# export coverage
- if [ $FLUTTER_CHANNEL = "stable" ]; then
bash <(curl -s https://codecov.io/bash);
fi
matrix:
fast_finish: true
allow_failures:
- env: FLUTTER_CHANNEL="master"
cache:
directories:
- $HOME/.pub-cache