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

Align travis build to actions #1048

Merged
merged 3 commits into from Oct 1, 2019

Conversation

HeroicKatora
Copy link
Member

@HeroicKatora HeroicKatora commented Oct 1, 2019

Failure that occurs only on nightly seems to be more often due to Rust
breakage than a bug. Take deprecation warnings more serious by actively
denying them which warns us of incompatible future versions as nightly
would.
Note: May remove this again in the future if it doesn't help. We've
already had the case where the rustc version commitment left us
without a proper replacement for a while since that had only been
introduce shortly before deprecation.

Also ensures that tests are ran on all relevant builds instead of only
on nightly.

Closes: #1043

Failure that occurs only on nightly seems to be more often due to Rust
breakage than a bug. Take deprecation warnings more serious by actively
denying them which warns us of incompatible future versions as nightly
would.
  Note: May remove this again in the future if it doesn't help. We've
  already had the case where the rustc version commitment left us
  without a proper replacement for a while since that had only been
  introduce shortly before deprecation.

Also ensures that tests are ran on all relevant builds instead of only
on nightly.
For osx and windows targets build with the first env combination since
they are matrix includes. This ensures that this selects the build
script with default features instead of no features.
@JohnTitor
Copy link
Member

Does it resolve #1043?

@HeroicKatora
Copy link
Member Author

Yes it should. Thank you for noting.

Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

Looks good to me

Copy link
Member Author

@HeroicKatora HeroicKatora left a comment

Choose a reason for hiding this comment

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

Reviewed the executed Travis jobs and found osx suspiciously fast. Why is scripting so hard :/

.travis.yml Outdated Show resolved Hide resolved
Checks if a variable was declared, not if it has a non-empty content.
The core operation `${VARNAME+word}` will equal `word` if `VARNAME` is
set and non-null and be empty otherwise.

```
 DEFAULT_FEATURES=''
 [ -z "$DEFAULT_FEATURES" ] # true
```

```
 DEFAULT_FEATURES=''
 [ -n "${DEFAULT_FEATURES+exists}" ] # false
```
Copy link
Member

@JohnTitor JohnTitor left a comment

Choose a reason for hiding this comment

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

Looks better, it's smarter than I came up with!

Copy link
Contributor

@fintelia fintelia left a comment

Choose a reason for hiding this comment

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

Looks good to me

@HeroicKatora HeroicKatora merged commit 06ea11d into image-rs:master Oct 1, 2019
@HeroicKatora HeroicKatora deleted the build-system branch October 1, 2019 19:01
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.

Unecessary test runs
3 participants