Announcing Windows support for Dart on Travis CI

Michael Thomsen
Apr 15 · 2 min read

Recently, Travis CI — a continuous integration (CI) service for GitHub repos — announced early release support for the Windows operating system. Today, we’re announcing that Travis CI on Windows supports the Dart SDK, so you can run Dart build and test jobs on all three major desktop operating systems: Linux, Mac, and Windows.

If you already use Travis CI to build or test your Dart code, you can easily run your jobs on all three operating systems. Just add (or extend) the os: section in your repo’s .travis.yml file:

Then, whenever Travis CI runs, you’ll see entries for each test configuration running on each of the enabled operating systems. Here’s an example from the grpc-dart repo, after we added Windows to the test matrix:

Travis CI test matrix run on Linux, MacOS, and Windows

Because Windows support on Travis CI is still in an early release stage, we recommend that you review the known issues before adding Windows to your Travis jobs.

If you don’t yet use Travis CI for testing Dart, it’s really easy to get started. The most minimal .travis.yml file contains just one line:

This config is the equivalent of pub run test.

List any additional tasks under the dart_task: tag. These include running static analysis and code formatting checks (for full details, see the Travis documentation).

Here’s how to run static analysis, which checks your code for analysis errors:

Here’s how to make sure that all Dart files are correctly formatted:

If you have a more complicated repo with multiple Dart packages, you need a slightly more detailed setup. The travis command in the mono_repo tool is one possible solution for creating this setup.

Travis CI is one of several popular providers of continuous integration. Others with support for the Dart SDK include AppVeyor (sample) and Codeship. For Flutter apps, options include NeverCode, CirrusCI, and Bitrise.

That’s it for now. We hope you enjoy this new CI support for Dart.


Dart is a client-optimized language for fast apps on any platform. Learn more at

Michael Thomsen

Written by

Product Manager working on Dart and Flutter. Helping developers is my passion!



Dart is a client-optimized language for fast apps on any platform. Learn more at