I’m trying to build Playframework using CircleCI and see if it will behaves more stable than our current CI. Play is a Java/Scala project, using Scala 2.11 and SBT 0.13.11 (which I’ve manually installed as suggested at the docs).
My doubt is about how to proper use the parallel feature to execute validation (not only tests, but code inspections too) steps in parallel. Here is what I tried until now:
- Adjust the parallelism to use 4x (Project Settings > Parallelism)
- Write my
circle.yml
file to add theparallel: true
flag to each command that can execute in parallel - Fire a build
Then, instead of executing the validation steps in parallel, Circle executed all the commands 4x (four builds executing all the steps). And then I decided to try like this:
- Adjust the parallelism to use 1x (Project Settings > Parallelism) (I was wild guessing that the parallel configuration would be inferred from
circle.yml
). - Write my
circle.yml
file to add theparallel: true
flag to each command that can execute in parallel - Fire another build
Still no game. All the commands are executed sequentially, but this time once.
What I was expecting was to have the test/validation commands to be executed in parallel (4x).
ps.: I’m currently configuring the build for my own fork. After a green/parallel build and when everything works as expected, I can go for the official repository.