-
Notifications
You must be signed in to change notification settings - Fork 5
/
.travis.yml
50 lines (44 loc) · 1.17 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
50
os:
- linux
addons:
apt:
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
sources:
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
packages:
- libstdc++6
- fonts-droid-fallback
before_install:
- chmod +x ./tool/travis/test.sh
- chmod +x ./tool/travis/analyze.sh
- chmod +x ./tool/travis/format.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":`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 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: "Format"
script: ./tool/travis/format.sh
stages:
- quality
branches:
only:
- master
cache:
directories:
- $HOME/.pub-cache