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

Updated Travis CI config to use multiple stages for CI/CD. #19

Merged
merged 1 commit into from May 27, 2020

Conversation

jverbus
Copy link
Contributor

@jverbus jverbus commented May 27, 2020

Using Travis stages in this way ensures that all build versions are
successful before we publish any artifacts. This is in contrast to the
previous commit where it was possible, but unlikely, for a new version
to be published for the baseline dependencies (Spark 2.3.0 and Scala
2.11.8), even if another build using different Spark/Scala versions
failed.

New build pipeline using Travis stages

The first "test" stage runs all build variations in parallel to ensure they succeed.

The second "release" stage runs the Shipkit ciPerformRelease command. This uploads the new baseline (Spark 2.3.0 and Scala 2.11.8) artifact to JCenter, pushes another commit to the GitHub repo adding version documentation, bumps the version in the version.properties file, and creates a git tag with the version number.

Other minor changes

I updated the .gitignore and deleted some old build files that accidentally got committed in the past.

Using Travis stages in this way ensures that all build versions are
successful before we publish any artifacts. This is in contrast to the
previous version where it was possible, but unlikely, for a new version
to be published for the baseline dependencies (Spark 2.3.0 and Scala
2.11.8), even if another build using different Spark/Scala versions
failed.

**New build pipeline using Travis stages**

The first "test" stage runs all build variations in parallel to ensure they succeed.

The second "release" stage runs the Shipkit ciPerformRelease command. This uploads the new baseline (Spark 2.3.0 and Scala 2.11.8) artifact to JCenter, pushes another commit to the GitHub repo adding version documentation, bumps the version in the version.properties file, and creates a git tag with the version number.

**Other minor changes**

I updated the .gitignore and deleted some old build files that accidentally got committed in the past.
@jverbus jverbus requested a review from fastier-li May 27, 2020 07:55
@jverbus jverbus self-assigned this May 27, 2020
@jverbus jverbus added the enhancement New feature or request label May 27, 2020
@jverbus
Copy link
Contributor Author

jverbus commented May 27, 2020

Here is an example of both the "test" and "release" stages running in series.

https://travis-ci.org/github/linkedin/isolation-forest/builds/691634791

@jverbus jverbus marked this pull request as ready for review May 27, 2020 07:59
@jverbus jverbus merged commit a3b306a into master May 27, 2020
@jverbus jverbus deleted the travis-stages-simple branch May 27, 2020 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants