-
-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Travis builds (using stages) #293
Fix Travis builds (using stages) #293
Conversation
Why use stages here? It is way more verbose than the build matrix. I would prefer to remove the bash scripts instead since they aren't adding much value here. I suggest remove them and have: script:
- sbt ++TRAVIS_SCALA_VERSION test scalafmtCheckAll ... That way, we won't bother with |
Only if it's a oneliner. |
For a few reasons, first, the three scripts are being run all together, one after the other, on a single build. This gives us less visibility on what is breaking or not. Second, adding the validation on the first stage is interesting because we can do a quick sanity check before starting running more heavy jobs. We are doing so for Play and Lagom and is paying off. I agree that we don't need the scripts and we could inline them. Actually, I realise now that the reason why we had this Another reason for using stages is that we can select some stages to run on PRs and others on merges or cron (although there is no cron for twirl) Now, I personally don't like the matrix in Travis. I find stages with explicitly env variables more obvious. At least I can immediately see what is going to happen. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the explanation regarding the use of stages, @renatocaval.
This LGTM.
No description provided.