forked from icapps/flutter-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
49 lines (43 loc) · 1.25 KB
/
.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
38
39
40
41
42
43
44
45
46
47
48
49
os: osx
osx_image: xcode12.2
before_install:
- chmod +x ./tool/travis/test.sh
- chmod +x ./tool/travis/analyze.sh
sudo: required
before_script:
- git clone https://github.com/flutter/flutter.git -b stable ../flutter
- export PATH="$PATH":`pwd`/../flutter/bin
- export PATH="$PATH":$HOME/.pub-cache/bin
- export PATH="$PATH":`pwd`/../flutter/bin/cache/dart-sdk/bin
- flutter config --no-analytics
- flutter doctor
- export FLUTTER_SDK=`pwd`/../flutter
- gem install coveralls-lcov
- flutter pub global activate dart_style
- flutter pub global activate fvm
- flutter packages get || exit -1;
jobs:
include:
- stage: quality
name: "Tests"
script: ./tool/travis/test.sh
- stage: quality
name: "Analyze"
script: ./tool/travis/analyze.sh
- stage: quality
name: "Rename Project Test"
script: ./tool/travis/rename_project.sh
- stage: quality
name: "Strip Boiler plate project keep Test dir"
script: ./tool/travis/strip_boilerplate_project.sh
- stage: quality
name: "Strip Boiler plate project remove Test dir"
script: ./tool/travis/strip_boilerplate_project_remove_tests.sh
stages:
- quality
branches:
only:
- master
cache:
directories:
- $HOME/.pub-cache