Skip to content

Conversation

kamalmarhubi
Copy link
Member

This adds --cfg=travis to builds under CI, allowing tests to be
conditionally ignored by marking them with

#[cfg_attr(travis, ignore)]

refs #568

This adds `--cfg=travis` to builds under CI, allowing tests to be
conditionally ignored by marking them with

    #[cfg_attr(travis, ignore)]

refs nix-rust#568
@kamalmarhubi kamalmarhubi requested a review from posborne April 17, 2017 03:53
@kamalmarhubi
Copy link
Member Author

r? @posborne

Does this seem reasonable to you?

@kamalmarhubi
Copy link
Member Author

kamalmarhubi commented Apr 17, 2017

In particular, setting RUSTFLAGS passes this down to all dependencies. Our transitive test dependencies right now:

  • bitflags
  • cfg-if
  • gcc
  • kernel32-sys
  • lazy_static
  • libc
  • rand
  • rustc_version
  • semver
  • tempdir
  • tempfile
  • void
  • winapi
  • winapi-build

I'm guessing travis is not likely to be tested in these crates, but pointing it out anyway.

@asomers asomers self-requested a review April 17, 2017 15:32
Copy link
Member

@asomers asomers left a comment

Choose a reason for hiding this comment

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

LGTM. Though if anybody has an extra seven grand lying around, we can get one of these babies and ditch QEMU.

https://system76.com/servers/starling

@kamalmarhubi
Copy link
Member Author

A lesser ARM device would probably be all right for our use cases. :-)

bors r=asomers

bors bot added a commit that referenced this pull request Apr 17, 2017
588: ci: Allow skipping tests when running under CI r=asomers
This adds `--cfg=travis` to builds under CI, allowing tests to be
conditionally ignored by marking them with

    #[cfg_attr(travis, ignore)]

refs #568
@bors
Copy link
Contributor

bors bot commented Apr 17, 2017

Build succeeded

@bors bors bot merged commit 25ce053 into nix-rust:master Apr 17, 2017
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