creativecreatorormaybenot

CI, resolves #3

  1 +# Continuous Integration
  2 +
  3 +Due to creativecreatorormaybenot lacking knowledge, the current Travis CI implementation is based on [provider's setup](https://github.com/rrousselGit/provider/blob/09c7fdebc382121f1a497180a6fe393a5e54b904/.travis.yml).
  1 +set -e
  2 +cd $1
  3 +flutter packages get
  4 +flutter format --set-exit-if-changed .
  5 +flutter analyze --no-current-package .
  6 +cd example
  7 +flutter drive --target=test_driver/app.dart
  8 +cd -
  1 +language: bash
  2 +os:
  3 + - osx
  4 +env:
  5 + - FLUTTER_CHANNEL="stable"
  6 + - FLUTTER_CHANNEL="master"
  7 +sudo: false
  8 +before_script:
  9 + - cd ..
  10 + - git clone https://github.com/flutter/flutter.git -b $FLUTTER_CHANNEL
  11 + - export PATH=$PATH:$PWD/flutter/bin:$PWD/flutter/bin/cache/dart-sdk/bin
  12 + - cd -
  13 + - flutter doctor
  14 +script:
  15 + - set -e
  16 + - ./scripts/drive.sh
  17 +matrix:
  18 + fast_finish: true
  19 +cache:
  20 + directories:
  21 + - $HOME/.pub-cache