Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

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 meh committed Dec 5, 2019
1 parent aa2c77d commit f1ce2d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .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 f1ce2d0

Please sign in to comment.