sbt / sbt-projectmatrix

MIT License
124 stars 14 forks source link

Feature: Have a specific test/ compile per version on the root project. #54

Open borissmidt opened 3 years ago

borissmidt commented 3 years ago

It might be useful to have specific commands to build test a specific version of scala to speed up development. I.e. if i have some kind of runtime error/ bug only for scala 2.13 then it would be nice to only build your project for 2.13. for example sbt test_2.11.

keynmol commented 3 years ago

Hah, this is actually same feature I wanted in #48 :)

To that end, when #50 was merged (and released in 0.8.0), I set out to build a very small plugin that works on top of projectmatrix: https://github.com/indoorvivants/sbt-commandmatrix

It's obviously very young and immature, but you can test it and let me know :)

My hope is to eventually upstream this functionality into the sbt-projectmatrix itself (once it's battle tested)

borissmidt commented 3 years ago

Ah cool! yea i already prefer project-matrix since you then don't forget to run the tests for all versions. On the flipside having all tests always run 3 times slows down productivity.

In the past i have contributed to, here we just have multiple 'sourceSets' in 1 project but create different tasks for different versions, of course it is a competely different build system.: https://github.com/prokod/gradle-crossbuild-scala