Skip to content

Commit

Permalink
build: fix bindgen warnings breaking TravisCI
Browse files Browse the repository at this point in the history
When rustfmt is missing, bindgen puts anything on one line. Any warnings then
dump so many logs that TravisCI is overwhelmed. The fix is to add rustfmt to the
environment.

See rust-lang/rust-bindgen#1600
  • Loading branch information
Daniel Dulaney authored and tilpner committed May 24, 2023
1 parent 7369918 commit c919c74
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/.travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ addons:
packages:
- build-essential
before_install:
# Without rustfmt, bindgen puts everything on one line and any warnings dump so many logs they break Travis
# See https://github.com/rust-lang/rust-bindgen/issues/1600
- rustup component add rustfmt
- if [[ $TRAVIS_OS_NAME == 'linux' ]]; then ./.travis/install_linux.sh; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew update; fi
- if [[ $TRAVIS_OS_NAME == 'osx' ]]; then brew install yasm; fi
Expand Down

0 comments on commit c919c74

Please sign in to comment.