Skip to content

Commit 22dc5f4

Browse files
committed
Fix travis build
1 parent a19bae6 commit 22dc5f4

File tree

3 files changed

+16
-29
lines changed

3 files changed

+16
-29
lines changed

.gitattributes

Lines changed: 0 additions & 2 deletions
This file was deleted.

.travis.yml

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,23 @@
11
os:
2-
- linux
2+
- osx
3+
env:
4+
- FLUTTER_CHANNEL="stable"
5+
- FLUTTER_CHANNEL="master"
36
sudo: false
4-
addons:
5-
apt:
6-
# Flutter depends on /usr/lib/x86_64-linux-gnu/libstdc++.so.6 version GLIBCXX_3.4.18
7-
sources:
8-
- ubuntu-toolchain-r-test # if we don't specify this, the libstdc++6 we get is the wrong version
9-
packages:
10-
- libstdc++6
11-
- fonts-droid
127
before_script:
13-
- git clone https://github.com/flutter/flutter.git -b beta
14-
- ./flutter/bin/flutter doctor
8+
- cd ..
9+
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_CHANNEL
10+
- export PATH=$PATH:$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin
11+
- cd -
12+
- flutter doctor
1513
script:
16-
- ./flutter/bin/flutter pub get
17-
- ./flutter/bin/cache/dart-sdk/bin/dartfmt -n --set-exit-if-changed ./lib ./test ./example || travis_terminate 1
14+
- set -e # abort CI if an error happens
15+
- flutter pub get
16+
- dartfmt -n --set-exit-if-changed ./lib ./test ./example || travis_terminate 1
17+
matrix:
18+
fast_finish: true
19+
allow_failures:
20+
- env: FLUTTER_CHANNEL="master"
1821
cache:
1922
directories:
2023
- $HOME/.pub-cache

.vscode/launch.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

0 commit comments

Comments
 (0)