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

Travis: use stages #469

Merged
merged 5 commits into from
May 25, 2020
Merged

Travis: use stages #469

merged 5 commits into from
May 25, 2020

Conversation

ennru
Copy link
Contributor

@ennru ennru commented May 25, 2020

Introduce stages to test first, publish after it

@ennru ennru marked this pull request as draft May 25, 2020 10:48
.travis.yml Outdated
- stage: publish
name: "TEMPORARY, will become Publish artifacts to Bintray"
script: sbt +mimaReportBinaryIssues
scala: 2.13.1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we need the scala version?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Otherwise the Travis Matrix kicks in and runs it for 2.12 and 2.13.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you lost me? Are you saying that the scala section on line 13 will cause it to run twice?

I think we should remove this. The build.sbt already define the default scala version and the the + will take care of the cross building.

Btw, play-soap doesn't have it: https://github.com/playframework/play-soap/blob/master/.travis.yml

Copy link
Contributor

@octonato octonato May 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't have a definition for state test in this file? Is that a default staget? And will it pick what is defined in script (line 20)?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Play SOAP doesn't use a Travis Matrix.

Yes, test automatically inherits the global script as it doesn't have its own.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was my point. I was suggesting to remove the mix of matrix with stages. Let's only have stages, otherwise we need extra brain cycles to map the effect they have on each other.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I unrolled it now.

@ennru ennru marked this pull request as ready for review May 25, 2020 14:05
@ennru ennru requested a review from octonato May 25, 2020 14:05
@octonato octonato merged commit d0476cb into playframework:master May 25, 2020
@dwijnand
Copy link
Member

What's the motivation behind the matrix unroll? Easier to grok? Easier to vary things for different versions (at the expense of consistency)?

@ennru
Copy link
Contributor Author

ennru commented Jun 29, 2020

Easier to grok, fewer WTFs, see what is there.

@ennru ennru deleted the travis-stages branch June 29, 2020 13:54
@dwijnand
Copy link
Member

Gotcha.

Btw, I just remembered, there's also https://config.travis-ci.com/explore to help understand the matrix expansion as well as other details.

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