diff --git a/.travis.yml b/.travis.yml index 7d908e4..121a4e6 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file + - bash <(curl -s https://codecov.io/bash) -t $CODE_COV_TOKEN \ No newline at end of file diff --git a/pubspec.yaml b/pubspec.yaml index 5670485..9f8638f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 diff --git a/tool/travis.sh b/tool/travis.sh new file mode 100755 index 0000000..24eb3b1 --- /dev/null +++ b/tool/travis.sh @@ -0,0 +1,3 @@ +#!/bin/sh +set -e +$TRAVIS_BUILD_DIR/flutter/bin/flutter test --coverage \ No newline at end of file