google / grinder.dart

Dart workflows, automated
https://pub.dev/packages/grinder
BSD 3-Clause "New" or "Revised" License
261 stars 36 forks source link

Support initializing grinder-backed CI configs #179

Open seaneagan opened 9 years ago

seaneagan commented 9 years ago

pub run grinder:init --travis --appveyor would initialize a .travis.yml and appveyor.yml whose script is pub run grinder:grinder (which we can update to pub run grinder once Dart 1.10 is ubiquitous).

zoechi commented 9 years ago

drone.io?

seaneagan commented 9 years ago

Drone doesn't appear to have any config file we can use, but we could add a tool/drone.sh script which runs grinder via --drone. Would that work?

zoechi commented 9 years ago

I haven't used travis and appveyor and don't know what you have in mind by supporting them. I think tool/drone.sh is fine. An example (maybe there are better ones)

pub get
sudo start xvfb
pub run grind drone
seaneagan commented 9 years ago

So it would create a .travis.yml and appveyor.yml very similar to those in this repository. If they already exist, would probably just fail, and make the user edit them instead.

I think the last line in tool/drone.sh would just run the default task:

pub run grinder:grinder

That task can inspect the environment variables to determine if it is executing on drone, and do something specific if needed.

zoechi commented 9 years ago

Sounds great :)