Skip to content
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

Merged
merged 6 commits into from
Jan 6, 2020
Merged

Fix Travis builds (using stages) #293

merged 6 commits into from
Jan 6, 2020

Conversation

octonato
Copy link
Contributor

No description provided.

@octonato octonato mentioned this pull request Dec 17, 2019
.travis.yml Outdated Show resolved Hide resolved
@marcospereira
Copy link
Member

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 travis_terminate as well.

@dwijnand dwijnand changed the title Fix Traivs builds (using stages) Fix Travis builds (using stages) Dec 18, 2019
@dwijnand
Copy link
Member

That way, we won't bother with travis_terminate as well.

Only if it's a oneliner.

@octonato
Copy link
Contributor Author

Why use stages here?

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 travis_terminate thing was that we were running all three scripts in one single job.

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.

Copy link
Member

@marcospereira marcospereira left a 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.

@mergify mergify bot merged commit 55871df into playframework:1.5.x Jan 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants