Skip to content

Instantly share code, notes, and snippets.

@mraleph
Last active April 10, 2018 13:10
Show Gist options
  • Select an option

  • Save mraleph/321ec21b07ceb63add925281e29a399f to your computer and use it in GitHub Desktop.

Select an option

Save mraleph/321ec21b07ceb63add925281e29a399f to your computer and use it in GitHub Desktop.
  1. Make a folder somewhere that will contain engine and framework checkouts. The rest of instructions assumes that $flt points to that folder.
  2. Into $flt/flutter get flutter by
    $ cd $flt
    $ git clone https://github.com/flutter/flutter
  3. Add $flt/flutter/bin to your path, run flutter doctor and fix issues if any are reported.
  4. Into $flt/engine get engine checkout following these instructions. Make sure to run dependency installation scripts as described there.
  5. In $flt/engine/src/third_party/dart switch to master and pull upto HEAD
    $ cd $flt/engine/src/third_party/dart
    $ git checkout master
    $ git pull --rebase    
  6. In $flt/engine/src do
    $ cd $flt/engine/src
    $ flutter/tools/gn --runtime-mode debug
    $ ninja -C out/host_debug
  7. In $flt/flutter run flutter update-packages
  8. In $flt/flutter/packages/flutter run
    $ cd $flt/flutter/packages/flutter
    $ flutter test --local-engine host_debug
  9. If you want to run all tests then you can do
    $ cd $flt/flutter
    $ SHARD=tests ./bin/cache/dart-sdk/bin/dart ./dev/bots/test.dart --local-engine host_debug
    This will run the same tests that Travis is running.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment