Update pubspec for dart 2.0 compliance (#54)

Fluro's pubspec is now compatible with Dart 2.0 when it comes out
This commit is contained in:
Luke 2018-07-22 20:59:03 -07:00 committed by GitHub
parent ad93ef6711
commit 5090537969
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 14 additions and 17 deletions

View File

@ -1,13 +1,7 @@
language: dart
dart:
- dev
os:
- linux
sudo: false
env:
- FLUTTER_VERSION=dev
addons:
apt:
sources:
@ -16,21 +10,21 @@ addons:
- libstdc++6
- fonts-droid
cache:
directories:
- $HOME/.pub-cache
env:
- FLUTTER_VERSION=dev
matrix:
allow_failures:
- env: FLUTTER_VERSION=dev
before_script:
- pwd
- git clone https://github.com/flutter/flutter.git -b $FLUTTER_VERSION
- export PATH=`pwd`/flutter/bin:`pwd`/flutter/bin/cache/dart-sdk/bin:$PATH
- flutter doctor
- $TRAVIS_BUILD_DIR/flutter/bin/flutter doctor
script:
- pwd
- ./flutter/bin/flutter test --coverage
- ./tool/travis.sh
after_success:
- bash <(curl -s https://codecov.io/bash) -t $CODE_COV_TOKEN
cache:
directories:
- $HOME/.pub-cache
- bash <(curl -s https://codecov.io/bash) -t $CODE_COV_TOKEN

View File

@ -16,7 +16,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
test: ^0.12.37
test: ">=0.12.30+3 <0.13.0"
flutter:
uses-material-design: false

3
tool/travis.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/sh
set -e
$TRAVIS_BUILD_DIR/flutter/bin/flutter test --coverage