-
Notifications
You must be signed in to change notification settings - Fork 27
/
.travis.yml
31 lines (31 loc) · 806 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: dart
dart:
- stable
os:
- linux
sudo: false
addons:
# chrome: stable
apt:
sources:
- ubuntu-toolchain-r-test # you need this source to get the right version of libstdc++6
packages:
- libstdc++6
#- fonts-droid-fallback
install:
- echo 'Avoid default Travis CI install step' # this is to avoid an error with pub in Travis
before_script:
- cd ..
- git clone https://github.com/flutter/flutter.git
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor
# - pub global activate flutter_plugin_tools
script:
- cd $TRAVIS_BUILD_DIR
- flutter packages get
- flutter analyze --no-pub --no-current-package lib
# - flutter test
- flutter packages pub publish --dry-run
cache:
directories:
- $HOME/.pub-cache