sbt-projectmatrix icon indicating copy to clipboard operation
sbt-projectmatrix copied to clipboard

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

Open borissmidt opened this issue 4 years ago • 2 comments

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.

borissmidt avatar May 11 '21 15:05 borissmidt

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)

keynmol avatar May 11 '21 15:05 keynmol

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

borissmidt avatar May 11 '21 15:05 borissmidt