forked from rrousselGit/freezed
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
37 lines (36 loc) · 982 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
35
36
37
language: bash
os:
- osx
env:
- FLUTTER_CHANNEL="master"
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:
- cd packages/freezed
- cd example
- set -e
- flutter pub get
- flutter pub pub run build_runner build --delete-conflicting-outputs
- flutter test
- flutter analyze --no-current-package lib test/
- rm -rf **/*.freezed.dart **/*.g.dart
- flutter format --set-exit-if-changed lib test
- set +e
- cd -
- rm -rf example
- set -e
- flutter pub get
- flutter pub pub run build_runner build --delete-conflicting-outputs
- flutter pub run test
- flutter analyze --no-current-package lib test/
- rm -rf test/integration/*.freezed.dart test/integration/*.g.dart
- flutter format --set-exit-if-changed lib test
matrix:
fast_finish: true
cache:
directories:
- $HOME/.pub-cache