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

remove redundant job condition in travis (already at top-level) #290

Merged
merged 2 commits into from
May 21, 2019

Conversation

KtorZ
Copy link
Member

@KtorZ KtorZ commented May 21, 2019

Issue Number

Overview

  • I have removed redundant job condition in travis (already at top-level)

Comments

@KtorZ KtorZ requested a review from rvl May 21, 2019 06:22
@KtorZ KtorZ self-assigned this May 21, 2019
@KtorZ KtorZ force-pushed the KtorZ/travis-remove-redundant-constraints branch from c549e33 to 99ff05a Compare May 21, 2019 06:38
.travis.yml Outdated
@@ -148,7 +125,7 @@ jobs:
#
################################################################################
- stage: build dependencies 🔩
if: type != pull_request AND branch = master
if: type != pull_request
Copy link
Member

Choose a reason for hiding this comment

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

Now these will trigger on feature branches too?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, because of -> https://github.com/input-output-hk/cardano-wallet/pull/290/files#diff-354f30a63fb0907d4ad57269548329e3L27

We already have a condition that applies to ALL jobs. So it was slightly redundant to have these condition, except maybe that... we might not want to do any deploy stage with bors!

Copy link
Member Author

Choose a reason for hiding this comment

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

@Anviking Okay, I went for a slightly different approach and instead, allowed bors to run on PR builds (which are much faster in the end so better fits the problem here). This makes bors do only what's necessary to ensure PRs build correctly, and then, still leave to travis to perform deployment and other heavier tasks when stuff reaches master.

Copy link
Member

@Anviking Anviking left a comment

Choose a reason for hiding this comment

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

Confused by #290 (comment)

Aside from that, if we have to reduce our number of jobs: 👍

@KtorZ KtorZ force-pushed the KtorZ/travis-remove-redundant-constraints branch from 99ff05a to f567c04 Compare May 21, 2019 07:32
@KtorZ KtorZ merged commit 8c0eecb into master May 21, 2019
@iohk-bors iohk-bors bot deleted the KtorZ/travis-remove-redundant-constraints branch May 21, 2019 08:07
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.

2 participants